Dog API · JSON Structure

Dog Api Error Response Structure

Response envelope returned when an API request fails (e.g., unknown breed).

Type: object Properties: 3 Required: 3
DogsImagesOpen DataOpen Source

ErrorResponse is a JSON Structure definition published by Dog API, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

status message code

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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"
  ]
}