{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/dog-api/refs/heads/main/json-structure/dog-api-error-response-structure.json", "name": "ErrorResponse", "description": "Response envelope returned when an API request fails (e.g., unknown breed).", "type": "object", "properties": { "status": { "type": "string", "description": "Outcome marker; \"error\" when the request failed.", "enum": [ "error" ], "example": "error" }, "message": { "type": "string", "description": "Human-readable error description.", "example": "Breed not found (main breed does not exist)" }, "code": { "type": "int32", "description": "HTTP status code echoed in the response body.", "example": 404 } }, "required": [ "status", "message", "code" ] }