TagMangoTagMango Docs

Error Codes

API error codes and how to handle them

The API uses standard HTTP status codes to indicate success or failure.

Status Codes

CodeStatusDescription
200OKRequest succeeded
400Bad RequestInvalid request parameters
401UnauthorizedAuthentication failed
404Not FoundResource not found
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer-side error

Error Response Example

{
  "message": "Validation failed",
  "success": false,
  "statusMessage": "NOT_FOUND",
  "code": 400
}

Handling Errors

  • Always check the HTTP status code
  • Parse the message field for details
  • Implement retry logic with exponential backoff for 500 errors
  • Do not retry 4xx errors — fix the request instead

On this page