Status Codes

When the user calls any of the REST resources, the Response header returns one of the standard HTTP status codes defined in the following table.

Table - Standard HTTP Status Codes

HTTP Status Codes Message Details
200 Success

Success with response body. Most GET requests will receive this response.

If no data to empty response body will be sent.

201 Created Success with response body. Used with POST URIs where a resource is created in the database. ID of the entity created should be returned.
204 Success Success with no response body. Most PUT requests will receive this response.
400 Bad Request The server cannot or will not process the request due to a client error such as malformed request syntax, invalid request message framing, or deceptive request routing. To be used if URI syntax is not correct such as wrong format in Q query
401 Unauthorized User not authorized
403 Forbidden The server denied access to the resource. Please contact System Administrator.
404 Not Found Request resource not found
405 Method not allowed HTTP action not allowed for the requested API
406 Not acceptable The endpoint does not support the response format specified in the request Accept header
415 Unsupported media type The endpoint does not support the format of the request body