pub enum ErrorKind {
Unauthorized,
Forbidden,
RateLimited,
NotFound,
BadRequest,
ServerError,
Unavailable,
MethodNotAllowed,
}
Expand description
A type of error, for instance “Bad Request” or “Server Error”.
Variants§
The route requires authorization, and it was not provided or was invalid.
Forbidden
The authorization was valid, but the authorized user has insufficient permissions for this route.
RateLimited
The client has been sending requests too quickly, and needs to slow down.
NotFound
The URL wasn’t found.
BadRequest
The request was invalid or bad for some reason.
ServerError
The request was invalid or bad for some reason.
The server is temporarily overloaded or down for maintenance.
MethodNotAllowed
This HTTP method isn’t allowed at this URL, and another method would be valid.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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