Enumeration: WebStatus
@divine/web-service.WebStatus
An enumeration of all known HTTP status codes.
See HTTP response status codes at MDN for more information.
Enumeration Members
ACCEPTED
• ACCEPTED = 202
The request has been received but not yet acted upon.
Defined in
ALREADY_REPORTED
• ALREADY_REPORTED = 208
Used inside a <dav:propstat> response element to avoid repeatedly enumerating the internal members of multiple bindings to the same collection.
Defined in
BAD_GATEWAY
• BAD_GATEWAY = 502
This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.
Defined in
BAD_REQUEST
• BAD_REQUEST = 400
The server could not understand the request due to invalid syntax.
Defined in
BANDWIDTH_LIMIT_EXCEEDED
• BANDWIDTH_LIMIT_EXCEEDED = 509
Non-standard response code: The server has exceeded the bandwidth specified by the server administrator.
Defined in
CONFLICT
• CONFLICT = 409
This response is sent when a request conflicts with the current state of the server.
Defined in
CONTINUE
• CONTINUE = 100
This interim response indicates that the client should continue the request or ignore the response if the request is already finished.
Defined in
CREATED
• CREATED = 201
The request succeeded, and a new resource was created as a result. This is typically the response sent after POST requests, or some PUT requests.
Defined in
EARLY_HINTS
• EARLY_HINTS = 103
This status code is primarily intended to be used with the Link header, letting the user agent start preloading resources while the server prepares a response.
Defined in
EXPECTATION_FAILED
• EXPECTATION_FAILED = 417
This response code means the expectation indicated by the Expect
request header field cannot be met by the server.
Defined in
FAILED_DEPENDENCY
• FAILED_DEPENDENCY = 424
The request failed due to failure of a previous request.
Defined in
FORBIDDEN
• FORBIDDEN = 403
The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource.
Defined in
FOUND
• FOUND = 302
This response code means that the URI of requested resource has been changed temporarily.
Defined in
GATEWAY_TIMEOUT
• GATEWAY_TIMEOUT = 504
This error response is given when the server is acting as a gateway and cannot get a response in time.
Defined in
GONE
• GONE = 410
This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
Defined in
HTTP_VERSION_NOT_SUPPORTED
• HTTP_VERSION_NOT_SUPPORTED = 505
The HTTP version used in the request is not supported by the server.
Defined in
IM_USED
• IM_USED = 226
The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
Defined in
INSUFFICIENT_STORAGE
• INSUFFICIENT_STORAGE = 507
The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
Defined in
INTERNAL_SERVER_ERROR
• INTERNAL_SERVER_ERROR = 500
The server has encountered a situation it does not know how to handle.
Defined in
I_AM_A_TEAPOT
• I_AM_A_TEAPOT = 418
The server refuses the attempt to brew coffee with a teapot.
Defined in
LENGTH_REQUIRED
• LENGTH_REQUIRED = 411
Server rejected the request because the Content-Length
header field is not defined and the server requires it.
Defined in
LOCKED
• LOCKED = 423
The resource that is being accessed is locked.
Defined in
LOOP_DETECTED
• LOOP_DETECTED = 508
The server detected an infinite loop while processing the request.
Defined in
METHOD_NOT_ALLOWED
• METHOD_NOT_ALLOWED = 405
The request method is known by the server but is not supported by the target resource.
Defined in
MISDIRECTED_REQUEST
• MISDIRECTED_REQUEST = 421
The request was directed at a server that is not able to produce a response.
Defined in
MOVED_PERMANENTLY
• MOVED_PERMANENTLY = 301
The URL of the requested resource has been changed permanently.
Defined in
MULTIPLE_CHOICES
• MULTIPLE_CHOICES = 300
The request has more than one possible response. The user agent or user should choose one of them.
Defined in
MULTI_STATUS
• MULTI_STATUS = 207
Conveys information about multiple resources, for situations where multiple status codes might be appropriate.
Defined in
NETWORK_AUTHENTICATION_REQUIRED
• NETWORK_AUTHENTICATION_REQUIRED = 511
Indicates that the client needs to authenticate to gain network access.
Defined in
NON_AUTHORITATIVE_INFORMATION
• NON_AUTHORITATIVE_INFORMATION = 203
This response code means the returned metadata is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy.
Defined in
NOT_ACCEPTABLE
• NOT_ACCEPTABLE = 406
This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent.
Defined in
NOT_EXTENDED
• NOT_EXTENDED = 510
Further extensions to the request are required for the server to fulfill it.
Defined in
NOT_FOUND
• NOT_FOUND = 404
The server can not find the requested resource.
Defined in
NOT_IMPLEMENTED
• NOT_IMPLEMENTED = 501
The request method is not supported by the server and cannot be handled.
Defined in
NOT_MODIFIED
• NOT_MODIFIED = 304
This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.
Defined in
NO_CONTENT
• NO_CONTENT = 204
There is no content to send for this request, but the headers may be useful.
Defined in
OK
• OK = 200
The request succeeded.
Defined in
PARTIAL_CONTENT
• PARTIAL_CONTENT = 206
This response code is used when the Range header is sent from the client to request only part of a resource.
Defined in
PAYLOAD_TOO_LARGE
• PAYLOAD_TOO_LARGE = 413
Request entity is larger than limits defined by server.
Defined in
PAYMENT_REQUIRED
• PAYMENT_REQUIRED = 402
This response code is reserved for future use. The initial aim for creating this code was using it for digital payment systems, however this status code is used very rarely and no standard convention exists.
Defined in
PERMANENT_REDIRECT
• PERMANENT_REDIRECT = 308
This means that the resource is now permanently located at another URI, specified by the Location:
HTTP Response header.
Defined in
PRECONDITION_FAILED
• PRECONDITION_FAILED = 412
The client has indicated preconditions in its headers which the server does not meet.
Defined in
PRECONDITION_REQUIRED
• PRECONDITION_REQUIRED = 428
The origin server requires the request to be conditional. This response is intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.
Defined in
PROCESSING
• PROCESSING = 102
This code indicates that the server has received and is processing the request, but no response is available yet.
Defined in
PROXY_AUTHENTICATION_REQUIRED
• PROXY_AUTHENTICATION_REQUIRED = 407
This is similar to 401 Unauthorized but authentication is needed to be done by a proxy.
Defined in
RANGE_NOT_SATISFIABLE
• RANGE_NOT_SATISFIABLE = 416
The range specified by the Range
header field in the request cannot be fulfilled.
Defined in
REQUEST_HEADER_FIELDS_TOO_LARGE
• REQUEST_HEADER_FIELDS_TOO_LARGE = 431
The server is unwilling to process the request because its header fields are too large.
Defined in
REQUEST_TIMEOUT
• REQUEST_TIMEOUT = 408
This status code indicates that the server did not receive a complete request message within the time that it was prepared to wait.
Defined in
RESET_CONTENT
• RESET_CONTENT = 205
Tells the user agent to reset the document which sent this request.
Defined in
SEE_OTHER
• SEE_OTHER = 303
The server sent this response to direct the client to get the requested resource at another URI with a GET request.
Defined in
SERVICE_UNAVAILABLE
• SERVICE_UNAVAILABLE = 503
The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.
Defined in
SWITCHING_PROTOCOLS
• SWITCHING_PROTOCOLS = 101
This code is sent in response to an Upgrade request header from the client and indicates the protocol the server is switching to.
Defined in
SWITCH_PROXY
• SWITCH_PROXY = 306
The 306 response is generated by a proxy server to indicate that the client or proxy should use the information in the accompanying Set-Proxy header to choose a proxy for subsequent requests.
Deprecated
since HTTP 1.1 (RFC 2616).
Defined in
TEMPORARY_REDIRECT
• TEMPORARY_REDIRECT = 307
The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.
Defined in
TOO_EARLY
• TOO_EARLY = 425
Indicates that the server is unwilling to risk processing a request that might be replayed.
Defined in
TOO_MANY_REQUESTS
• TOO_MANY_REQUESTS = 429
The user has sent too many requests in a given amount of time ("rate limiting").
Defined in
UNAUTHORIZED
• UNAUTHORIZED = 401
Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
Defined in
UNAVAILABLE_FOR_LEGAL_REASONS
• UNAVAILABLE_FOR_LEGAL_REASONS = 451
The user agent requested a resource that cannot legally be provided, such as a web page censored by a government.
Defined in
UNPROCESSABLE_ENTITY
• UNPROCESSABLE_ENTITY = 422
The request was well-formed but was unable to be followed due to semantic errors.
Defined in
UNSUPPORTED_MEDIA_TYPE
• UNSUPPORTED_MEDIA_TYPE = 415
The media format of the requested data is not supported by the server, so the server is rejecting the request.
Defined in
UPGRADE_REQUIRED
• UPGRADE_REQUIRED = 426
The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.
Defined in
URI_TOO_LONG
• URI_TOO_LONG = 414
The URI requested by the client is longer than the server is willing to interpret.
Defined in
USE_PROXY
• USE_PROXY = 305
Defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy.
Deprecated
since RFC 7231.
Defined in
VARIANT_ALSO_NEGOTIATES
• VARIANT_ALSO_NEGOTIATES = 506
The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.