Errors

Understand and handle errors returned by the Tariff8 API.

Standard Format

In case of error, the API always returns a 4xx or 5xx HTTP code and a JSON body structured as follows:

error.json

HTTP Codes

CodeTypeDescription
400Bad RequestThe request is malformed (invalid JSON, missing parameters).
401UnauthorizedAPI key is missing or invalid.
403ForbiddenYou do not have permissions (e.g. credits exhausted).
404Not FoundThe requested resource does not exist.
429Too Many RequestsYou exceeded the request limit (Rate Limit).
500Internal Server ErrorServer side error. Our teams are notified.