HTTP Status Codes
The API returns HTTP Status Codes as would mostly be expected:
| Code | Description |
|---|---|
| 200 | OK |
| 307 | Temporary Redirect. Used when the ID of the requested entity has been changed to another ID (Moody's version only). |
| 400 | Bad request - probably illegal request parameters. |
| 401 | Unauthorized – Not logged in or session expired. |
| 403 | Access denied – Missing required role, expired ApiKey/session or bad ApiKey/Token |
| 404 | Not found – If the endpoint is valid, the requested ID could not be found in the database. |
| 500 | Unknown error. |
| 502 | Used in conjunction with the SSO endpoints if the remote SSO endpoint fails to respond in an expected way or timed out. |