Updated on 2022-02-22 GMT+08:00

Status Codes

Table 1 lists all status codes.

Table 1 Status codes

Status Code

Reason Phrase

Description

200

OK

The request has been fulfilled.

201

Created

The request has been fulfilled and a new resource has been created.

202

Accepted

The request has been accepted, but the processing has not been completed.

204

NoContent

The request has been fulfilled, but the HTTP response does not contain a response body.

The status code is returned in response to an HTTP OPTIONS request.

300

Multiple Choices

There are multiple options for the location of the requested resource. The response contains a list of resource characteristics and addresses from which the user or user agent (such as a browser) can choose the most appropriate one.

303

See Other

The response to the request can be found under a different URI,

and should be retrieved using a GET or POST method.

304

Not Modified

The requested resource has not been modified. When the server returns this status code, it does not return any resources.

400

BadRequest

The request is invalid.

The client should not repeat the request without modifications.

401

Unauthorized

The status code is returned after the client provides the authentication information, indicating that the authentication information is incorrect or invalid.

403

Forbidden

The server understood the request, but is refusing to fulfill it.

The client should not repeat the request without modifications.

404

NotFound

The requested resource cannot be found.

The client should not repeat the request without modifications.

406

Not Acceptable

The server cannot fulfill the request according to the content characteristics of the request.

409

Conflict

The request could not be processed due to a conflict with the current state of the resource.

This status code indicates that the resource that the client is attempting to create already exists, or that the request has failed to be processed because of the update of the conflict request.

410

Gone

The requested resource is no longer available.

The status code indicates that the requested resource has been deleted permanently.

412

Precondition Failed

The server did not meet one of the preconditions that the requester put on the request.

415

Unsupported Media Type

The server is unable to process the media format in the request.

500

InternalServerError

The server is able to receive the request but unable to understand it.

503

ServiceUnavailable

The requested service is invalid.

The client should not repeat the request without modifications.