Status Codes

When you call any of the IRT REST API resources, the Response header returns one of the standard HTTP status codes defined in the following table.

HTTP Status Code Description
200 OK The request was successfully completed. A 200 status is returned for a successful request.
207 Multi-status Request successfully executed and some records had errors. Some records are successfully created and some had errors. Details of the error and records is contained in the response body.
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.
406 Not Acceptable The resource identified by this request is not capable of generating a representation corresponding to one of the media types in the Accept header of the request. For example, the client's Accept header requests XML be returned, but the resource can only return JSON.
417 Expectation Failed Business validation failure occurred, no record saved.
500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request.