Enum backend::models::error::ErrorCode [−][src]
pub enum ErrorCode {
Show 21 variants
DatabaseErr,
AuthTokenMissing,
AuthTokenInvalid,
BurrowNotExist,
BurrowNumLimit,
BurrowInvalid,
PostNotExist,
ReplyNotExist,
EmailInvalid,
EmailDuplicate,
UsernameDuplicate,
RateLimit,
UserForbidden,
UserNotExist,
EmptyField,
SectionInvalid,
CredentialInvalid,
UnsupportedMediaType,
FileNotExist,
Unknown,
None,
}
Expand description
ErrorCode for all the public interfaces
Variants
500 InternalServerError
401 Unauthorized
401 Unauthorized
404 NotFound
403 Forbidden
403 Forbidden
404 NotFound
404 NotFound
400 BadRequest
400 BadRequest
400 BadRequest
429 TooManyRequests
403 Forbidden
400 BadRequest
400 BadRequest
400 BadRequest
400 BadRequest
415 UnsupportedMediaType
404 NotFound
500 InternalServerError
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more