Error codes

HTTP status codes returned by the MailSentry API and what to do about each one.

Status codes

StatusMeaningWhat to do
200SuccessRequest completed. Parse the response body.
400Bad requestMissing or invalid email field. Check your request body.
401UnauthorizedMissing or invalid API key. Check the X-API-Key header.
402Payment requiredMonthly limit reached. Upgrade your plan or wait until next month.
429Too many requestsRate limit exceeded. Wait and retry with backoff. See Rate limits.
500Server errorSomething went wrong on our end. Retry after a short delay. If persistent, check system status.

Error response format

Error responses include a JSON body with a message:

{
  "error": "Monthly check limit reached",
  "status": 402
}

The error field is always a human-readable string you can log or display.