Use status code to verify standard behavior and diagnose and remedy exceptions
Overview
Risk Modeler indicates the success or failure of an API request with a status code. These status codes are displayed in the message body of the HTTP response.
HTTP response status codes enable you to verify normal behavior and provide context for understanding exceptions.
Risk Modeler API services return standard HTTP response codes to indicate the success or failure of an API request.
- 200 OK
- An OK status indicates that the request was successful. A valid response has been returned.
- 201 Created
- A Created status indicates that the entity requested has been created successfully.
- 202 Accepted
- An Accepted status indicates that the request was accepted and queued but not executed.
- 204 No Content
- A No Content status indicates that the request had no body content. Used for response to DELETE request.
- 304 Not Modified
- The Not Modified status is used in combination with caching.
- 400 Bad Request
- The Bad Request status indicates that there is a validation error or wrong parameters.
- 401 Unauthorized
- The Unauthorized status indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
- 403 Forbidden
- The Forbidden response status code indicates that the server understands the request but refuses to authorize it.
- 404 Not Found
- The Not Found response status code indicates that the server cannot find the requested resource.
- 405 Method Not Allowed
- The Method Not Allowed status indicates that the resource/method combination is invalid.
- 409 Conflict
- The Conflict status indicates that the representation conflicts with target resource state
- 410 Gone
- The Gone status indicates that the requested resource is no longer available at the server and no forwarding address is known.
- 429 Too Many Requests
- The Too Many Requests status is used for rate limiting.
- 500 Internal Server Error
- The Internal Server Error status identifies an unexpected condition has occurred.
- 501 Not Implemented
- The Not Implemented status indicates that the server does not support the requested functionality.