viaduct
0.1.0
Module status_
codes
Module Items
Constants
Functions
In crate viaduct
viaduct
Module
status_codes
Copy item path
source
Expand description
A module containing constants for all HTTP status codes.
Constants
§
ACCEPTED
BAD_
GATEWAY
BAD_
REQUEST
CONFLICT
CONTINUE
CREATED
EXPECTATION_
FAILED
FORBIDDEN
FOUND
GATEWAY_
TIMEOUT
GONE
HTTP_
VERSION_
NOT_
SUPPORTED
INTERNAL_
SERVER_
ERROR
LENGTH_
REQUIRED
METHOD_
NOT_
ALLOWED
MOVED_
PERMANENTLY
MULTIPLE_
CHOICES
NONAUTHORITATIVE_
INFORMATION
NOT_
ACCEPTABLE
NOT_
FOUND
NOT_
IMPLEMENTED
NOT_
MODIFIED
NO_
CONTENT
OK
PARTIAL_
CONTENT
PAYMENT_
REQUIRED
PRECONDITION_
FAILED
PROXY_
AUTHENTICATION_
REQUIRED
REQUESTED_
RANGE_
NOT_
SATISFIABLE
REQUEST_
ENTITY_
TOO_
LARGE
REQUEST_
TIMEOUT
REQUEST_
URI_
TOO_
LONG
RESET_
CONTENT
SEE_
OTHER
SERVICE_
UNAVAILABLE
SWITCHING_
PROTOCOLS
TEMPORARY_
REDIRECT
TOO_
MANY_
REQUESTS
UNAUTHORIZED
UNSUPPORTED_
MEDIA_
TYPE
USE_
PROXY
Functions
§
is_
client_
error_
code
Is it a 4xx error?
is_
server_
error_
code
Is it a 5xx error?
is_
success_
code
Is it a 2xx status?