Status Codes

A call of a REST endpoint returns a standard HTTP status code in the Response header.

HTTP Status Code Description

200 OK

The request was successfully completed. A 200 status is returned for a successful GET or POST method.

202 Accepted

The request has been accepted for processing, but the processing has not been completed. The request may or may not eventually be acted upon, as it may be disallowed at the time processing takes place.

400 Bad Request

The request could not be processed because it contains missing or invalid information (such as, a validation error on an input field, a missing required value, and so on).

401 Unauthorized

The request is not authorized. The authentication credentials included with this request are missing or invalid.

403 Forbidden

The user cannot be authenticated. The user does not have authorization to perform this request.

404 Not Found

The request includes a resource URI that does not exist.

405 Method Not Allowed

The HTTP verb specified in the request ( DELETE, GET, POST, PUT) is not supported for this request URI.

415 Not Acceptable

The client's ContentType header is not correct. For example, the client attempts to send the request in XML, but the resource can only accept JSON.

500 Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request.

503 Service Unavailable

The server is unable to handle the request due to temporary overloading or maintenance of the server. The REST web application is not currently running.