{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.dev/draft/schemas/common/types/error_code.json",
  "title": "Error Code",
  "description": "Error code identifying the type of error. Standard errors are defined in capability specifications (see examples) and have standardized semantics; freeform codes are permitted.",
  "type": "string",
  "examples": [
    "not_found",
    "out_of_stock",
    "item_unavailable",
    "address_undeliverable",
    "payment_failed",
    "eligibility_invalid",
    "identity_required",
    "insufficient_scope"
  ]
}