API Responses
Status Code
The following table summarizes the HTTP response codes you may receive from the Primer REST API.
Status Code | Description |
---|---|
200 | Success |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Entity Not Found |
500 | Internal Error |
Error Response
Mentium uses conventional HTTP response codes to indicate the success or failure of an API request. HTTP codes in the 2XX
range indicate a successful request, whereas codes in the 4XX
range indicate a failed request usually due to invalid inputs or operations.
The format of the payload for all errors is common. When an unsuccessful request occurs, you will receive a payload containing those attributes:
Fields | |
---|---|
| A developer-facing error message |
| A list of messages that carry the error details. There is a common set of message types for APIs to use. |
Last updated