pub enum ControllerErrorType {
InternalServerError,
BadRequest,
BadRequestWithData(ErrorData),
NotFound,
Unauthorized,
Forbidden,
}
Expand description
The type of ControllerError that occured.
Variants§
InternalServerError
HTTP status code 500.
BadRequest
HTTP status code 400.
BadRequestWithData(ErrorData)
HTTP status code 400.
NotFound
HTTP status code 404.
HTTP status code 401. Needs to log in.
Forbidden
HTTP status code 403. Is logged in but is not allowed to access the resource.
Trait Implementations§
source§impl Debug for ControllerErrorType
impl Debug for ControllerErrorType
source§impl<'de> Deserialize<'de> for ControllerErrorType
impl<'de> Deserialize<'de> for ControllerErrorType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ControllerErrorType
impl Display for ControllerErrorType
Auto Trait Implementations§
impl RefUnwindSafe for ControllerErrorType
impl Send for ControllerErrorType
impl Sync for ControllerErrorType
impl Unpin for ControllerErrorType
impl UnwindSafe for ControllerErrorType
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