Enum backtalk::ErrorKind
[−]
[src]
pub enum ErrorKind { Unauthorized, Forbidden, RateLimited, NotFound, BadRequest, ServerError, Unavailable, MethodNotAllowed, }
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.
Methods
impl ErrorKind
[src]
fn as_string(&self) -> String
Returns the string version of the error. For instance, BadRequest
returns "bad_request"
.