Skip to main content

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

web-service/src/error.ts:70


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

web-service/src/error.ts:88


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

web-service/src/error.ts:222


BAD_REQUEST

BAD_REQUEST = 400

The server could not understand the request due to invalid syntax.

Defined in

web-service/src/error.ts:129


BANDWIDTH_LIMIT_EXCEEDED

BANDWIDTH_LIMIT_EXCEEDED = 509

Non-standard response code: The server has exceeded the bandwidth specified by the server administrator.

Defined in

web-service/src/error.ts:243


CONFLICT

CONFLICT = 409

This response is sent when a request conflicts with the current state of the server.

Defined in

web-service/src/error.ts:156


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

web-service/src/error.ts:52


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

web-service/src/error.ts:67


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

web-service/src/error.ts:61


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

web-service/src/error.ts:180


FAILED_DEPENDENCY

FAILED_DEPENDENCY = 424

The request failed due to failure of a previous request.

Defined in

web-service/src/error.ts:195


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

web-service/src/error.ts:138


FOUND

FOUND = 302

This response code means that the URI of requested resource has been changed temporarily.

Defined in

web-service/src/error.ts:100


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

web-service/src/error.ts:228


GONE

GONE = 410

This response is sent when the requested content has been permanently deleted from server, with no forwarding address.

Defined in

web-service/src/error.ts:159


HTTP_VERSION_NOT_SUPPORTED

HTTP_VERSION_NOT_SUPPORTED = 505

The HTTP version used in the request is not supported by the server.

Defined in

web-service/src/error.ts:231


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

web-service/src/error.ts:91


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

web-service/src/error.ts:237


INTERNAL_SERVER_ERROR

INTERNAL_SERVER_ERROR = 500

The server has encountered a situation it does not know how to handle.

Defined in

web-service/src/error.ts:216


I_AM_A_TEAPOT

I_AM_A_TEAPOT = 418

The server refuses the attempt to brew coffee with a teapot.

Defined in

web-service/src/error.ts:183


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

web-service/src/error.ts:162


LOCKED

LOCKED = 423

The resource that is being accessed is locked.

Defined in

web-service/src/error.ts:192


LOOP_DETECTED

LOOP_DETECTED = 508

The server detected an infinite loop while processing the request.

Defined in

web-service/src/error.ts:240


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

web-service/src/error.ts:144


MISDIRECTED_REQUEST

MISDIRECTED_REQUEST = 421

The request was directed at a server that is not able to produce a response.

Defined in

web-service/src/error.ts:186


MOVED_PERMANENTLY

MOVED_PERMANENTLY = 301

The URL of the requested resource has been changed permanently.

Defined in

web-service/src/error.ts:97


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

web-service/src/error.ts:94


MULTI_STATUS

MULTI_STATUS = 207

Conveys information about multiple resources, for situations where multiple status codes might be appropriate.

Defined in

web-service/src/error.ts:85


NETWORK_AUTHENTICATION_REQUIRED

NETWORK_AUTHENTICATION_REQUIRED = 511

Indicates that the client needs to authenticate to gain network access.

Defined in

web-service/src/error.ts:249


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

web-service/src/error.ts:73


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

web-service/src/error.ts:147


NOT_EXTENDED

NOT_EXTENDED = 510

Further extensions to the request are required for the server to fulfill it.

Defined in

web-service/src/error.ts:246


NOT_FOUND

NOT_FOUND = 404

The server can not find the requested resource.

Defined in

web-service/src/error.ts:141


NOT_IMPLEMENTED

NOT_IMPLEMENTED = 501

The request method is not supported by the server and cannot be handled.

Defined in

web-service/src/error.ts:219


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

web-service/src/error.ts:106


NO_CONTENT

NO_CONTENT = 204

There is no content to send for this request, but the headers may be useful.

Defined in

web-service/src/error.ts:76


OK

OK = 200

The request succeeded.

Defined in

web-service/src/error.ts:64


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

web-service/src/error.ts:82


PAYLOAD_TOO_LARGE

PAYLOAD_TOO_LARGE = 413

Request entity is larger than limits defined by server.

Defined in

web-service/src/error.ts:168


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

web-service/src/error.ts:135


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

web-service/src/error.ts:126


PRECONDITION_FAILED

PRECONDITION_FAILED = 412

The client has indicated preconditions in its headers which the server does not meet.

Defined in

web-service/src/error.ts:165


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

web-service/src/error.ts:204


PROCESSING

PROCESSING = 102

This code indicates that the server has received and is processing the request, but no response is available yet.

Defined in

web-service/src/error.ts:58


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

web-service/src/error.ts:150


RANGE_NOT_SATISFIABLE

RANGE_NOT_SATISFIABLE = 416

The range specified by the Range header field in the request cannot be fulfilled.

Defined in

web-service/src/error.ts:177


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

web-service/src/error.ts:210


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

web-service/src/error.ts:153


RESET_CONTENT

RESET_CONTENT = 205

Tells the user agent to reset the document which sent this request.

Defined in

web-service/src/error.ts:79


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

web-service/src/error.ts:103


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

web-service/src/error.ts:225


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

web-service/src/error.ts:55


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

web-service/src/error.ts:120


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

web-service/src/error.ts:123


TOO_EARLY

TOO_EARLY = 425

Indicates that the server is unwilling to risk processing a request that might be replayed.

Defined in

web-service/src/error.ts:198


TOO_MANY_REQUESTS

TOO_MANY_REQUESTS = 429

The user has sent too many requests in a given amount of time ("rate limiting").

Defined in

web-service/src/error.ts:207


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

web-service/src/error.ts:132


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

web-service/src/error.ts:213


UNPROCESSABLE_ENTITY

UNPROCESSABLE_ENTITY = 422

The request was well-formed but was unable to be followed due to semantic errors.

Defined in

web-service/src/error.ts:189


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

web-service/src/error.ts:174


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

web-service/src/error.ts:201


URI_TOO_LONG

URI_TOO_LONG = 414

The URI requested by the client is longer than the server is willing to interpret.

Defined in

web-service/src/error.ts:171


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

web-service/src/error.ts:113


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.

Defined in

web-service/src/error.ts:234