Errors

Whenever Naurt returns a non-2XX response code, it will return an error message of the following format

JSON
{
    "code": String,
    "reason": String,
    "remediation": String
}

An example might be

JSON
{
    "code":"E-001-005",
    "reason":"`Authorization` header must be present",
    "remediation":"Add an `Authorization` header with your API key from the Naurt dashboard"
}

This will give you instant feedback on any issues encountered, and usually the steps required to fix that issue. Please review the remediation steps closely, if you are unable to resolve the issue, please contact Naurt support, and include the original request, the error code and what remediations you have already attempted.

Error codes are of the format E-XXX-XXX. The first part, E-XXX can be used to find the product. The second part identifies the particular error. The error code to products are as follows

  • E-000 - General global errors
  • E-001 - API Key errors
  • E-002 - Final Destination V1 errors
  • E-003 - Final Destination V2 errors
  • E-006 - Feedback V1 Errors

You may use the following tables to lookup error codes

E-000 (General Global Errors)

CodeReasonRemediationStatus code
E-000-000Internal Server ErrorContact Naurt Support if error persists500
E-000-001Internal Server ErrorContact Naurt Support if error persists500
E-000-002Internal Server ErrorContact Naurt Support if error persists500
E-000-003Internal Server ErrorContact Naurt Support if error persists500
E-000-004Internal Server ErrorContact Naurt Support if error persists500
E-000-005Internal Server ErrorContact Naurt Support if error persists500
E-000-006Internal Server ErrorContact Naurt Support if error persists500
E-000-007Not foundCheck documentation for valid endpoints404
E-000-008Unprocessable ContentCheck documentation; most likely your JSON body does not match the specification422

E-001 (API Key Errors)

CodeReasonRemediationStatus code
E-001-000Key not recognisedVerify provided API key matches key on dashboard401
E-001-001Key is pausedUnpause key403
E-001-002Key is deletedUse a different key; keys can not be undeleted403
E-001-003Key is disabledNaurt has disabled your key; please contact Naurt support403
E-001-004This request would take you over your allowance. Your package allows {} queries, your key currently has {} and the request has {} queriesUpgrade your package; contact sales402
E-001-005Authorization header must be presentAdd an Authorization header with your API key from the Naurt dashboard400

E-002 (Final Destination V1 Errors)

Please note that Final Destination V1 is a legacy software - if you are considering integrating for the first time, please use V2. V1 may sometimes use errors from V2, so also check those (in this case, the error code will start with E-003)

CodeReasonRemediationStatus code
E-002-000latitude present without longitude or vice-versaWhen using a location search, always include both latitude and longitude400
E-002-001Search country support is not finalisedVerify country code is supported. Check search country against coverage maps.400
E-002-002verbose or pretty_print at query level in bulk requestRemove all instances of verbose or pretty_print from individual queries in the bulk request400

E-003 (Final Destination V2 Errors)

CodeReasonRemediationStatus code
E-003-000Search country support is not finalisedVerify country code is supported. Check country against coverage maps.400
E-003-001Subceeded minimum allowed queries. Minimum allowed queries: 1You included {} queries: increase count to minimum allowed or above400
E-003-002Exceeded maximum allowed queries. Maximum allowed queries: 200You included {} queries: decrease count to maximum allowed or below400
E-003-003Mixed id with other search parametersRemove id or other search parameters400
E-003-004Mixed source_id with other search parametersRemove source_id or all other search parameters400
E-003-005Not enough search parameters present to make a valid queryProvide more search parameters. See documentation for details on search modes400
E-003-006Unsupported source_id parameterSee documentation for currently supported source_id values400
E-003-007Can not search by address_string and address_structured at the same timeSearch by only address_string or address_structured in a single query400
E-003-008address_structured does not contain enough data to form a fully qualified addressInclude more fields in the address_structured JSON. Must contain at a minimum: a postal code, a street name, and a street number or a house name400
E-003-009address_line overlaps with other fieldsWhen using address_line in the structured address you may not also use unit, house_name, street_number, street_name. Review documentation on intended use400
E-003-010Invalid location providedLocations must be valid WGS84 coordinates in decimal degrees. Latitudes must be between -90.0 and 90.0 and longitudes must be between -180.0 and 180.0.400
E-003-011distance_filter invalid. Must be between {} and {}. You provided {}.Ensure distance_filter is between acceptable values400
E-003-012language may only be used in a reverse geocodeEither remove language or perform a reverse geocode400
E-003-013Attempt to search by multiple source_idEnsure only searching by a single source_id at a time400

E-006 (Feedback Errors)

CodeReasonRemediationStatus code
E-006-000Missing Naurt ID or location and addressAdded either a Naurt ID or an address with location. Review documentation for correct input parameters400
E-006-001Bad addressAddress string must be 5-200 characters and include comma or space separated words400
E-006-002Address onlyAdd a Naurt ID, location or both400
E-006-003Location onlyAdd a Naurt ID, address string or both400
E-006-004Naurt ID onlyAdd a location, address string or both400
E-006-005Invalid locationLocations must be valid WGS84 coordinates in decimal degrees. Latitudes must be between -90.0 and 90.0 and longitudes must be between -180.0 and 180.0.400
E-006-006Latitude without longitude, or vice versaEnsure all latitudes are paired with longitudes, and vice versa400