docs / 07
Errors
The API returns JSON errors with a stable error code and a human-readable message.
Error shape
A rejected request returns a JSON body with at least an error code and a message.
{
"error": "invalid_fips",
"message": "county FIPS must be exactly five digits",
"fips": "abc"
}HTTP status codes
| Status | Meaning |
|---|---|
| 200 | Success. |
| 201 | Created (trial token issued). |
| 400 | Malformed input: an invalid FIPS, status or state filter. |
| 401 | Missing, invalid or expired credential. |
| 402 | The trial token has no credits remaining. |
| 403 | The token is revoked, or the caller is not an admin. |
| 404 | Unknown county, unknown token id, unknown path, no parcel contains the requested point, no parcel matches the address, or the ZIP is not in the crosswalk. |
| 409 | The account has already claimed its one sandbox trial, the county name is ambiguous, or more than one parcel matches the address. |
| 422 | The covered county for this address publishes no street addresses and has no matching address point, and no rooftop/point geocode was available, so it cannot answer an address search. |
Error codes
| Code | HTTP | Raised when |
|---|---|---|
| invalid_status | 400 | status is not one of the six coverage classes. The body lists the allowed values. |
| invalid_state | 400 | state is not a two-letter abbreviation or two-digit FIPS. |
| invalid_fips | 400 | /api/counties/:fips is not exactly five digits. |
| invalid_county_fips | 400 | /api/parcels county_fips is not exactly five digits. |
| invalid_limit | 400 | /api/parcels limit is not an integer between 1 and 1000. |
| invalid_lat | 400 | /api/parcels/at lat is missing, non-finite, or outside -90 to 90. |
| invalid_lon | 400 | /api/parcels/at lon is missing, non-finite, or outside -180 to 180. |
| not_found | 404 | No tracked county with that FIPS, no revocable token with that id, or no parcel contains the requested point. |
| invalid_address | 400 | /api/parcels/by-address address is not a comma-separated 'street, city, STATE ZIP' line, or the city/state is unusable. |
| missing_zip | 400 | The address has no ZIP, no county hint and the geocoder is unavailable, so the county cannot be resolved. |
| street_number_required | 400 | The address has no street number. |
| county_fips_not_accepted | 400 | A numeric county or a county_fips parameter was sent. The county is resolved server-side from the ZIP, a county name or the geocoder. |
| county_not_found | 404 | The county name hint does not match a tracked county in the parsed state. |
| county_ambiguous | 409 | The county name hint matches more than one tracked county in the state. The body carries counties. |
| zip_unknown | 404 | The ZIP is not in the Census ZCTA-to-county crosswalk and the geocoder could not place the address at rooftop/point precision. |
| county_uncovered | 404 | None of the candidate counties holds parcel data. The body carries counties. |
| address_not_found | 404 | Neither the street index, a contained address point, nor a rooftop/point geocode placed the address on a parcel. An interpolated geocode counts as not found. 0 credits. |
| address_ambiguous | 409 | More than one parcel matches the address, more than one parcel contains a matching address point, or two footprints are almost equally close to the geocoded point. The body carries candidates: id, apn, county, address. Add apn= to choose. |
| address_search_unavailable | 422 | The covered county publishes no street addresses, has no matching address point, and no rooftop/point geocode was available. 0 credits. |
| geocoder_unavailable | 503 | Geocodio did not answer (unconfigured, transport failure or non-2xx), so a line without a local match could not be resolved. 0 credits; retry shortly. |
| trial_already_claimed | 409 | The account has already claimed its one sandbox trial; it cannot be issued again. |
| missing | 401 | No Authorization: Bearer header was provided. |
| invalid | 401 | The bearer token is not recognised. |
| expired | 401 | The bearer token is past its expiry. |
| exhausted | 402 | A trial token has no credits remaining. |
| revoked | 403 | The bearer token has been revoked. |
Examples
An unknown county:
{
"error": "not_found",
"message": "No county with FIPS 00000",
"fips": "00000"
}An exhausted trial token:
{
"error": "exhausted",
"message": "The API token has no credits remaining."
}