Developer Guide
Status Codes
Non-standard responses are handled via HTTP status code and response.
In the event that there is an error which requires a resolution, a response with media-type “application/problem+json” (RFC 7807) will be returned. In other cases, http status code alone will be returned.
Http Status Codes:
200 | Successful request |
204 | Destination data not available. More research is required. – Please contact us to let us know for what trip details you are checking the travel visa requirements. |
400 | Invalid request – problem will be returned |
401 | Unauthorized. Verify API Key. |
404 | Not found. Check correctness of URL. |
500, 503 | Application has encountered a problem. Try again later. |
Problem JSON example:
[
{
"name": "destination",
"reason": "destination is required."
},
{
"name": "residency",
"reason": "residency is required."
},
{
"name": "purpose",
"reason": "purpose is required."
}
]