Skip to main content

Error Codes

AdGem's APIs use standard HTTP status codes. In general: 2xx is success; 4xx means a problem with the request (don't retry unchanged); 5xx is a server-side error (safe to retry with backoff).

StatusMeaning
200 OK / 201 CreatedSuccess.
400 Bad RequestMalformed request.
401 UnauthorizedMissing, invalid, or expired credentials.
403 ForbiddenAuthenticated, but not permitted to access the resource.
415 Unsupported Media TypeWrong Content-Type — e.g. a token request that isn't application/x-www-form-urlencoded.
422 Unprocessable EntityValidation error — a parameter is missing or invalid.
429 Too Many RequestsRate limit exceeded — slow down and retry later.
5xxServer error — retry with exponential backoff.

Per-API specifics

Each API documents the codes it returns and their specific causes:

Webhooks

For inbound webhook events, AdGem expects a 2xx response from your endpoint; any other status is retried. See Webhook Events.