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.
A
429 response’s code says which limit was exceeded:
Each API reference page lists the errors you can retry.
