# Errors

# HTTP Error codes

The GoSMS API returns the following HTTP Error codes:

Code Meaning
200 OK
400 Bad Request: your request contains invalid data
401 Unauthorized: you sent an invalid API key
402 Payment Required: you need to top-up your account

# Request Error codes

The GoSMS API returns the following request error codes:

Code Meaning
RECIPIENT_MISSING The recipient field is missing
MESSAGE_MISSING The message field is missing
INVALID_PHONE The phone number has an invalid format
PHONE_BLACKLISTED The phone number is blacklisted
LIMIT_ERROR You've exceeded the monthly limit for sending SMS
SCHEDULE_ERROR The date you are trying to use is not in the future
DATE_ERROR The date has an invalid format