Unsuccessful Response Parameters

When a DNS request is unsuccessful, the ANSWER section's status field will indicate one of the following status codes:

StatusDescription
REFUSEDUnauthorized or no coverage
SERVFAILMisformatted request
FORMERRDNS Query Format Error
NXDOMAINDomain name does not exist
NOTAUTHThe server refused to handle the query (not authenticated)

When such a response is received, the ANSWER section will contain the following properties:

PropertyTypeDescriptionOptional
errIntegerThe error status codefalse

Error Codes:

CodeDescription
1Generic error
2Unauthorized
3No funds
4Query not allowed (coverage)
5Misformatted MSISDN
6Speed limit throttle error

Status and Error Code Matrix:

StatusResponse ErrorReasons
SERVFAIL1 (Generic error)Generic unhandled error
NXDOMAIN5 (Misformatted MSISDN)MSISDN invalid, MSISDN prefix not resolvable
NOTAUTH2 (Unauthorized)Inactive account, invalid IP, inactive product
FORMERR1 (Generic error)Invalid QCLASS or QTYPE, Unparsable domain
REFUSED1 (Generic error)Query routing error
REFUSED4 (Query not allowed)No coverage for country, no coverage for network
REFUSED6 (Speed limit throttle error)Client exceeded the configured speed limit threshold