Specific Errors Scenarios

  • Missing Extension Exception Error (10001)
$curl --request GET \
  --url https://api.deepinfo.com/v1/lookup/domain-availability?domain=deepinfo \
  --header 'Accept: application/json' \
  --header 'apikey: [YOUR_API_KEY]'
HTTP/1.1 400 Bad Request
...
{
    "code": 10001,
    "reason": "Domain extension is not given in the input."
}
  • Invalid Extension Exception Error
$curl --request GET \
  --url https://api.deepinfo.com/v1/lookup/domain-availability?domain=deepinfo.deep\
  --header 'Accept: application/json' \
  --header 'apikey: [YOUR_API_KEY]'
HTTP/1.1 400 Bad Request
...
{
    "code": 10002,
    "reason": "Domain extension in the given input is not valid."
}
  • Invalid FQDN Exception Error
$curl --request GET \
  --url https://api.deepinfo.com/v1/lookup/[email protected] \
  --header 'Accept: application/json' \
  --header 'apikey: [YOUR_API_KEY]'
HTTP/1.1 400 Bad Request
...
{
    "code": 11000,
    "reason": "The given input is not a valid fqdn."
}