#[repr(u16)]pub enum StatusCode {
Ok = 200,
NoContent = 204,
BadRequest = 400,
RequestTimeout = 408,
UnsupportedMediaType = 415,
InternalServerError = 500,
ServiceUnavailable = 503,
VersionNotSupported = 505,
}
Expand description
Represents the valid status codes for command responses.
Variants§
Ok = 200
No error.
NoContent = 204
There is no content to send for this response.
BadRequest = 400
Header or payload is missing or invalid.
RequestTimeout = 408
The request timed out before a response could be received from the command processor.
UnsupportedMediaType = 415
The content type specified in the request is not supported by this implementation.
InternalServerError = 500
Unknown error, internal logic error, or command processor error.
Invalid service state preventing command from executing properly.
VersionNotSupported = 505
The request failed because the remote party did not support the requested protocol version.
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl FromStr for StatusCode
impl FromStr for StatusCode
Source§impl PartialEq for StatusCode
impl PartialEq for StatusCode
impl Copy for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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