#[non_exhaustive]pub enum Status {
Show 51 variants
None,
Continue,
SwitchingProtocols,
Processing,
Ok,
Created,
Accepted,
NonAuthoritative,
NoContent,
ResetContent,
PartialContent,
MultiStatus,
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
NotModified,
UseProxy,
NotAppearingInThisProtocol,
TemporaryRedirect,
PermanentRedirect,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
ProxyAuthenticationRequired,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
PreconditionFailed,
RequestEntityTooLarge,
RequestUriTooLong,
UnsupportedMediaType,
RequestedRangeNotSatisfiable,
ExpectationFailed,
MisdirectedRequest,
UnprocessableEntity,
Locked,
FailedDependency,
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
HttpVersionNotSupported,
InsufficientStorage,
NotExtended,
}
Expand description
These represent the known HTTP status code values, plus various network and internal errors.
Note that no libsoup functions take or return this type directly; any function that works with status codes will accept unrecognized status codes as well.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
No status available. (Eg, the message has not been sent yet)
Continue
100 Continue (HTTP)
SwitchingProtocols
101 Switching Protocols (HTTP)
Processing
102 Processing (WebDAV)
Ok
200 Success (HTTP). Also used by many lower-level soup routines to indicate success.
Created
201 Created (HTTP)
Accepted
202 Accepted (HTTP)
NonAuthoritative
203 Non-Authoritative Information (HTTP)
NoContent
204 No Content (HTTP)
ResetContent
205 Reset Content (HTTP)
PartialContent
206 Partial Content (HTTP)
MultiStatus
207 Multi-Status (WebDAV)
MultipleChoices
300 Multiple Choices (HTTP)
MovedPermanently
301 Moved Permanently (HTTP)
Found
302 Found (HTTP)
SeeOther
303 See Other (HTTP)
NotModified
304 Not Modified (HTTP)
UseProxy
305 Use Proxy (HTTP)
NotAppearingInThisProtocol
306 [Unused] (HTTP)
TemporaryRedirect
307 Temporary Redirect (HTTP)
PermanentRedirect
308 Permanent Redirect (HTTP)
BadRequest
400 Bad Request (HTTP)
401 Unauthorized (HTTP)
PaymentRequired
402 Payment Required (HTTP)
Forbidden
403 Forbidden (HTTP)
NotFound
404 Not Found (HTTP)
MethodNotAllowed
405 Method Not Allowed (HTTP)
NotAcceptable
406 Not Acceptable (HTTP)
ProxyAuthenticationRequired
407 Proxy Authentication Required (HTTP)
RequestTimeout
408 Request Timeout (HTTP)
Conflict
409 Conflict (HTTP)
Gone
410 Gone (HTTP)
LengthRequired
411 Length Required (HTTP)
PreconditionFailed
412 Precondition Failed (HTTP)
RequestEntityTooLarge
413 Request Entity Too Large (HTTP)
RequestUriTooLong
414 Request-URI Too Long (HTTP)
UnsupportedMediaType
415 Unsupported Media Type (HTTP)
RequestedRangeNotSatisfiable
416 Requested Range Not Satisfiable (HTTP)
ExpectationFailed
417 Expectation Failed (HTTP)
MisdirectedRequest
421 Misdirected Request
UnprocessableEntity
422 Unprocessable Entity (WebDAV)
Locked
423 Locked (WebDAV)
FailedDependency
424 Failed Dependency (WebDAV)
InternalServerError
500 Internal Server Error (HTTP)
NotImplemented
501 Not Implemented (HTTP)
BadGateway
502 Bad Gateway (HTTP)
503 Service Unavailable (HTTP)
GatewayTimeout
504 Gateway Timeout (HTTP)
HttpVersionNotSupported
505 HTTP Version Not Supported (HTTP)
InsufficientStorage
507 Insufficient Storage (WebDAV)
NotExtended
510 Not Extended (RFC 2774)
Implementations§
Trait Implementations§
source§impl<'a> FromValue<'a> for Status
impl<'a> FromValue<'a> for Status
§type Checker = GenericValueTypeChecker<Status>
type Checker = GenericValueTypeChecker<Status>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for Status
impl HasParamSpec for Status
source§impl Ord for Status
impl Ord for Status
source§impl PartialEq for Status
impl PartialEq for Status
source§impl PartialOrd for Status
impl PartialOrd for Status
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Status
impl StaticType for Status
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.