pub struct Codes {
pub content_type: &'static str,
pub credential: &'static str,
pub limit: &'static str,
pub malformed: &'static str,
pub refused: &'static str,
pub unauthorized: &'static str,
pub timeout: &'static str,
pub server_error: &'static str,
pub busy: &'static str,
}Expand description
Error codes of one router, each prefixed with its family name.
Fields§
§content_type: &'static str415: the body is not uncompressed JSON.
credential: &'static str401: a required bearer credential is missing or malformed.
limit: &'static str413: the body exceeds its limit.
malformed: &'static str400: the body does not parse as a request.
refused: &'static str400: the operation refused a well-formed request.
403: the credential may not perform the operation.
timeout: &'static str408: the body or the operation did not finish in time.
server_error: &'static str500: storage failed or the reply exceeded its limit.
busy: &'static str503: every permit is taken; retry after Retry-After.
Auto Trait Implementations§
impl Freeze for Codes
impl RefUnwindSafe for Codes
impl Send for Codes
impl Sync for Codes
impl Unpin for Codes
impl UnsafeUnpin for Codes
impl UnwindSafe for Codes
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