REST API HTTP Response Codes

The REST APIs support HTTP return status codes.

Success codes

Table 1. Success Codes
Success Codes Description
HTTP/1.1 200 OK Successful completion of a DELETE, GET, POST or PUT of a resource.
HTTP/1.1 201 Created Unable to process a request, which resulted in an exception or error.
HTTP/1.1 204 No Content Unable to process a request, which resulted in an exception or error.

Error codes

Table 2. Error Codes
Error Code Description
HTTP/1.1 400 Bad Request Invalid resource request.
HTTP/1.1 401 Unauthorized You do not have the correct authentication information.
HTTP/1.1 403 Forbidden You do not have access.
HTTP/1.1 404 Resource not found Trying to access resource which is not found.
HTTP/1.1 500 Internal Server Error Any exception that is thrown by the server.