Pricing & Coverage API | Options | HTTP Status Codes
HTTP code | Message | Description |
---|---|---|
| *see code examples* | The HTTP request was accepted. tyntec will reply with the requested information. |
| *see validation error message list below* | The HTTP request failed to pass the validation, i.e., one or more of the required parameters of the request is empty / missing / contradictory / invalid. The message provides more information as to why the validation failed. |
| Bad credentials | The credentials provided are not authorized. |
| Username / password wrong or missing | The credentials provided are not authorized. |
| The requested resource cannot be retrieved | The requested URI is either non-existent or the respective authentication is invalid. |
| Invalid request method | The request contains an invalid HTTP method (POST/GET). |
| The content-type is not supported. Allowed value is “application/json” | The request is not in JSON format. |
| The media type is not supported. Allowed media-types is “application/json” | The request is not in JSON format. |
| Please retry. If error persists, please contact customer support. | There was an unexpected error. |
The error message of the validation may mean one or more of the following:
Message | Description |
---|---|
Invalid authentication. | Invalid username and/or password, or wrong authentication token. |
The requested URI was not found. | The requested URI is either non-existent or the provided authentication is invalid. |
Unexpected error, please retry. If error persists, please contact customer support. | Something unexpected occurred during the processing of the request. |
The request method is not supported. | The request method is not supported. |
The content-type is not supported. Allowed values are “application/xml” and “application/json”. | The request is either JSON or XML format, or the HTTP header reads “Content-Type”. |