Skip to main content
All Hudhud APIs return a consistent JSON envelope to make parsing easy across different programming languages.

Standard Envelope

Most Hudhud APIs (Geocoding, Routing) wrap their results in a standard envelope to provide consistent status and error reporting:

Exceptions: Maps Styles

The Get Map Styles endpoint is an exception. To ensure full compatibility with map rendering libraries, it returns a raw MapLibre GL Style JSON object directly, without the { ok, data, error } wrapper.

Error Codes

Hudhud uses standard HTTP status codes to indicate the success or failure of an API request.

Content Type

Ensure your requests include the following header: