APIError

API error response

Federal GovernmentDisability EmploymentProcurementNonprofitAccessibility

Properties

Name Type Description
error string Error code
message string Human-readable error message
code integer HTTP status code
View JSON Schema on GitHub

JSON Schema

procurement-list-api-apierror-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.abilityone.gov/schema/apierror.json",
  "title": "APIError",
  "description": "API error response",
  "type": "object",
  "properties": {
    "error": {
      "description": "Error code",
      "type": "string",
      "example": "not_found"
    },
    "message": {
      "description": "Human-readable error message",
      "type": "string",
      "example": "NSN not found on Procurement List."
    },
    "code": {
      "description": "HTTP status code",
      "type": "integer",
      "example": 404
    }
  }
}