Status and error code
This document describes the error codes and messages that MTM Connect APIs return.
Status
| Message | HTTP status code | HTTP status name |
|---|---|---|
| Input has been valid and the import request has been initiated. | 200 | Success |
Error codes
Client request error
| Message | HTTP status code | HTTP status name |
|---|---|---|
| Input content is empty. | 400 | BadRequest |
| Input content not in accordance with the schema agreed. | 400 | BadRequest |
| The Organization ID posted in the src attribute is not matching the instance's Organization ID. | 400 | BadRequest |
| The client request has not been completed because it lacks valid authentication credentials for the requested resource. | 401 | Unauthorised |
| The Import ID posted was not found or the parameter name is incorrect. Parameter name should be Import ID. | 404 | NotFound |
| The Import ID posted has been removed already. | 404 | NotFound |
| Import request that is in progress or request that have been already imported cannot be removed from queue. | 404 | NotFound |
| Input content is beyond the size agreed. | 413 | RequestEntityTooLarge |
| Invalid content type in request. | 415 | UnsupportedMediaType |
Server error
| Message | HTTP status code | HTTP status name |
|---|---|---|
| Import failed. Please contact administrator | 500 | InternalServerError |
| Remove failed. Please contact administrator | 500 | InternalServerError |
| Status request failed. Please contact administrator | 500 | InternalServerError |
Throttling error
| Message | HTTP status code | HTTP status name |
|---|---|---|
| Too many attempts. | 429 | TooManyRequests |