Mailstand's API uses conventional HTTP response codes to indicate the success or failure of an API request. In case of error, the API returns an array of errors containing information regarding what happened.

Error Code Format Example

{
  	statusCode: 400,
    error: "Missing Fields",
    message: "Your request is missing the following keys: referred_by"
}

Common Error Labels

Code
Bad RequestGeneral error system (400 or 500)
Missing FieldsThe request is missing key information to process the request (400)
Failed ValidationThe request failed a basic validation needed (400)
API Connection ErrorThe request was unacceptable, often due to missing a required parameter. (401)
Invalid RequestWhen a request fails based on input (example: verification code is wrong on input) (400)
Unauthorized PermissionNo valid API key was provided. (401)
Missing RecordWe could not find the record that you're searching for/deleting (400)
Too Many RequestsYour account does not have enough credits to perform this action. You can upgrade within the platform. (429)
Rate LimitedYou are sending too many requests at once. Please try again soon and/or adjust the speed of your requests. (429)