ErrorResponse

Error response from the Treasury Fiscal Data API.

Federal GovernmentFinanceTreasuryNational DebtExchange RatesEconomics

Properties

Name Type Description
error string Error code.
message string Detailed error message.
status integer HTTP status code.
View JSON Schema on GitHub

JSON Schema

treasury-error-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/u-s-treasury-fiscal-data/refs/heads/main/json-schema/treasury-error-response-schema.json",
  "title": "ErrorResponse",
  "description": "Error response from the Treasury Fiscal Data API.",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Error code.",
      "example": "Bad Request"
    },
    "message": {
      "type": "string",
      "description": "Detailed error message.",
      "example": "Invalid filter parameter syntax."
    },
    "status": {
      "type": "integer",
      "description": "HTTP status code.",
      "example": 400
    }
  }
}