HttpError
struct HttpError
An HTTP error.
Implementions
Static 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.
Methods
[src]
pub fn source(self): Error {
return self.source;
}
Returns the source error.
[src]
pub fn source(self): Error {
return self.source;
}
Returns the source error.
Returns the source 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.