pub enum GatewayError {
BadRequest(String),
Forbidden(String),
Unauthorized(String),
MethodNotAllowed(String),
InternalServerError(String),
}Expand description
Internal errors as HTTP responses
Forwarding errors are fired only by Stomata errors.
Variants§
Trait Implementations§
Source§impl Debug for GatewayError
impl Debug for GatewayError
Source§impl Display for GatewayError
impl Display for GatewayError
Source§impl ResponseError for GatewayError
impl ResponseError for GatewayError
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Auto Trait Implementations§
impl Freeze for GatewayError
impl RefUnwindSafe for GatewayError
impl Send for GatewayError
impl Sync for GatewayError
impl Unpin for GatewayError
impl UnwindSafe for GatewayError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more