Youtube · Schema

ErrorDetails

Details about an API error

GoogleMediaSocialStreamingVideoVideos

Properties

Name Type Description
code integer HTTP status code
message string Human-readable error message
errors array List of specific errors
View JSON Schema on GitHub

JSON Schema

youtube-errordetails-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ErrorDetails",
  "title": "ErrorDetails",
  "type": "object",
  "description": "Details about an API error",
  "required": [
    "code",
    "message"
  ],
  "properties": {
    "code": {
      "type": "integer",
      "description": "HTTP status code",
      "example": 400
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message",
      "example": "Invalid parameter value"
    },
    "errors": {
      "type": "array",
      "description": "List of specific errors",
      "items": {
        "$ref": "#/components/schemas/ErrorItem"
      }
    }
  }
}