Response Codes

Netify datasets and APIs implement a multi-layered response model to clearly communicate request outcomes and error conditions.

HTTP Response Codes

All APIs and dataset downloads use standard HTTP status codes to indicate the result of a request.

Code Response
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Method Not Allowed
409 Conflict
422 Validation Error
429 Too Many Requests
500 Server Error

Extended Error Information

In addition to HTTP status codes, API responses may include extended error details within the JSON payload. These fields provide additional context to help diagnose issues. Not all error responses include extended information. For example, rate-limiting responses (HTTP 429) may return only the HTTP status code.

Extended Error Example

{
  "status_code": "403.000",
  "status_message": "Subscription has expired."
}

Validation Error Responses

The APIs provide extended validation information in the response payload. When a validation error occurs (HTTP Response code 422), the status_fields object returns detailed validation information on each field.

Validation Example

{
  "status_code": "422.000",
  "status_message": "Validation error",
  "status_fields": {
    "key": [ "The application tag is invalid." ],
    "label": [ "Label must be more than 2 characters." ]
  }
}