Enum webscan::ResponseStatus
source · [−]pub enum ResponseStatus {
Show 60 variants
Continue,
SwitchingProtocols,
Processing,
Ok,
Created,
Accepted,
NonAuthoritativeInformation,
NoContent,
ResetContent,
PartialContent,
MultiStatus,
AlreadyReported,
ImUsed,
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
NotModified,
UseProxy,
TemporaryRedirect,
PermanentRedirect,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
ProxyAuthenticationRequired,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
PreconditionFailed,
PayloadTooLarge,
UriTooLong,
UnsupportedMediaType,
RangeNotSatisfiable,
ExpectationFailed,
ImaTeapot,
MisdirectedRequest,
UnprocessableEntity,
Locked,
FailedDependency,
UpgradeRequired,
PreconditionRequired,
TooManyRequests,
RequestHeaderFieldsTooLarge,
UnavailableForLegalReasons,
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
HttpVersionNotSupported,
VariantAlsoNegotiates,
InsufficientStorage,
LoopDetected,
NotExtended,
NetworkAuthenticationRequired,
}
Expand description
HTTP response status
Variants
Continue
100 Continue
SwitchingProtocols
101 Switching Protocols
Processing
102 Processing
Ok
200 OK
Created
201 Created
Accepted
202 Accepted
NonAuthoritativeInformation
203 Non-Authoritative Information
NoContent
204 No Content
ResetContent
205 Reset Content
PartialContent
206 Partial Content
MultiStatus
207 Multi-Status
AlreadyReported
208 Already Reported
ImUsed
226 IM Used
MultipleChoices
300 Multiple Choices
MovedPermanently
301 Moved Permanently
Found
302 Found
SeeOther
303 See Other
NotModified
304 Not Modified
UseProxy
305 Use Proxy
TemporaryRedirect
307 Temporary Redirect
PermanentRedirect
308 Permanent Redirect
BadRequest
400 Bad Request
Unauthorized
401 Unauthorized
PaymentRequired
402 Payment Required
Forbidden
403 Forbidden
NotFound
404 Not Found
MethodNotAllowed
405 Method Not Allowed
NotAcceptable
406 Not Acceptable
ProxyAuthenticationRequired
407 Proxy Authentication Required
RequestTimeout
408 Request Timeout
Conflict
409 Conflict
Gone
410 Gone
LengthRequired
411 Length Required
PreconditionFailed
412 Precondition Failed
PayloadTooLarge
413 Payload Too Large
UriTooLong
414 URI Too Long
UnsupportedMediaType
415 Unsupported Media Type
RangeNotSatisfiable
416 Range Not Satisfiable
ExpectationFailed
417 Expectation Failed
ImaTeapot
418 I’m a teapot
MisdirectedRequest
421 Misdirected Request
UnprocessableEntity
422 Unprocessable Entity
Locked
423 Locked
FailedDependency
424 Failed Dependency
UpgradeRequired
426 Upgrade Required
PreconditionRequired
428 Precondition Required
TooManyRequests
429 Too Many Requests
RequestHeaderFieldsTooLarge
431 Request Header Fields Too Large
UnavailableForLegalReasons
451 Unavailable For Legal Reasons
InternalServerError
500 Internal Server Error
NotImplemented
501 Not Implemented
BadGateway
502 Bad Gateway
ServiceUnavailable
503 Service Unavailable
GatewayTimeout
504 Gateway Timeout
HttpVersionNotSupported
505 HTTP Version Not Supported
VariantAlsoNegotiates
506 Variant Also Negotiates
InsufficientStorage
507 Insufficient Storage
LoopDetected
508 Loop Detected
NotExtended
510 Not Extended
NetworkAuthenticationRequired
511 Network Authentication Required
Implementations
sourceimpl ResponseStatus
impl ResponseStatus
pub fn code(&self) -> u16
pub fn reason(&self) -> String
pub fn from_code(code: u16) -> ResponseStatus
pub fn is_information(&self) -> bool
pub fn is_success(&self) -> bool
pub fn is_redirection(&self) -> bool
pub fn is_client_error(&self) -> bool
pub fn is_server_error(&self) -> bool
Trait Implementations
sourceimpl Clone for ResponseStatus
impl Clone for ResponseStatus
sourcefn clone(&self) -> ResponseStatus
fn clone(&self) -> ResponseStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<ResponseStatus> for ResponseStatus
impl PartialEq<ResponseStatus> for ResponseStatus
impl StructuralPartialEq for ResponseStatus
Auto Trait Implementations
impl RefUnwindSafe for ResponseStatus
impl Send for ResponseStatus
impl Sync for ResponseStatus
impl Unpin for ResponseStatus
impl UnwindSafe for ResponseStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more