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 Code | Meaning |
---|---|
200 | OK – The request was successful. |
400 | Bad Request – Invalid parameters or malformed request. |
401 | Unauthorized – Missing or invalid API key. |
403 | Forbidden – Your account does not have access to this resource. |
404 | Not Found – The requested resource could not be found. |
429 | Too Many Requests – Rate limit exceeded. |
500 | Internal Server Error – Something went wrong on our side. |
Error Response Example
{
"status": 401,
"error": "Unauthorized",
"message": "Missing or invalid API key."
}