Skip to main content

Error Response Format

All errors return a JSON response with an error type and message:

HTTP Status Codes

Common Errors

400 Bad Request

Invalid parameters in your request:
Solutions:
  • Verify IMO numbers are 7 digits
  • Verify MMSI numbers are 9 digits
  • Check date formats match ISO 8601
  • Ensure required parameters are provided

401 Unauthorized

Authentication failed:
Solutions:
  • Include the x-api-key header
  • Verify your API key is correct
  • Check if your key has been revoked

404 Not Found

Vessel or resource doesn’t exist:
Solutions:
  • Verify the IMO/MMSI number is correct
  • Check if the vessel is still active
  • Try searching by name first

429 Rate Limited

Too many requests:
Solutions:
  • Implement exponential backoff
  • Cache responses when possible
  • Use bulk endpoints

Error Handling Example

Debugging Tips

  1. Check the response body - Error messages provide specific details
  2. Verify parameters - Use the API playground to test requests
  3. Check your credits - Some errors may be due to insufficient credits
  4. Review rate limits - Check X-RateLimit-Remaining header