Errors

The Searoutesnav API uses conventional HTTP response codes to indicate success or failure of an API request. Below is a list of the most common status codes you may encounter.

Status CodeMeaning
200OK – The request was successful.
400Bad Request – Invalid parameters or malformed request.
401Unauthorized – Missing or invalid API key.
403Forbidden – Your account does not have access to this resource.
404Not Found – The requested resource could not be found.
422Unprocessable Entity – The request body failed validation (e.g. an invalid emissions payload).
429Too Many Requests – Daily query limit exceeded.
500Internal Server Error – Something went wrong on our side.
503Service Unavailable – A subsystem (e.g. the emissions service) is temporarily unavailable.

Error Response Example

{ "status": 401, "error": "Unauthorized", "message": "Missing or invalid API key." }