HttpError
struct HttpError
An HTTP error.
Implementions
Methods
new
pub fn new(status: StatusCode, source: Error): HttpError
[src]
pub fn new(status: StatusCode, source: Error): HttpError {
return HttpError { status, source };
}
Creates a new HTTP error.
new
pub fn new(status: StatusCode, source: Error): HttpError
[src]
pub fn new(status: StatusCode, source: Error): HttpError {
return HttpError { status, source };
}
Creates a new HTTP error.
Creates a new HTTP error.
status
pub fn status(self): StatusCode
[src]
pub fn status(self): StatusCode {
return self.status;
}
Returns the status code of the error.
status
pub fn status(self): StatusCode
[src]
pub fn status(self): StatusCode {
return self.status;
}
Returns the status code of the error.
Returns the status code of the error.