- Contents
Interaction Media Server Technical Reference
REST API and HTTP Status Codes
The REST API returns one of the following HTTP status codes for any received request:
Status code |
Disposition |
Description |
|
Success |
The REST API response message contains a body. |
|
Success |
The
REST API created the requested POST action. The response message
may include a |
|
Success |
The REST API completed the request but the response message does not contain a body. This status code is common for POST, PUT, and DELETE actions. |
|
Failure |
The REST API could not process the content in the body of the request message. An example of this error is an invalid parameter value. |
|
Failure |
The REST API could not authenticate the supplied credentials. |
|
Failure |
The resource specified in the REST API request does not exist. An example of this error is an invalid command server ID. |
|
Failure |
The HTTP method (REST API commands), such as POST, PUT, and DELETE, is not valid for the specified resource. |
|
Failure |
The REST API could not complete the DELETE request of a command server. |
|
Failure |
There is a significant problem on the host computer that prevents the REST API from executing the request. |
Note:
Error messages for the 400 and 404 status codes return in the body of the response.
Example:
404 Not Found { "status": 404, "message": "No Command Server with the ID '8' exists", "messageWithParams": "No Command Server with the ID '{@segment}' exists", "messageParams": { "segment": "8" }, "code": "error.restresourcelib.resource.invalid" }