The Movie Database · JSON Structure

Tmdb Api Error Response Structure

Standard TMDB API error envelope returned on 4xx/5xx responses.

Type: object Properties: 3 Required: 3
CatalogDiscoveryEntertainmentImagesMediaMetadataMoviesPeopleRecommendationsReviewsSearchStreamingTrendingTVVideoWatch Providers

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

Properties

status_code status_message success

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/tmdb/refs/heads/main/json-structure/tmdb-api-error-response-structure.json",
  "name": "ErrorResponse",
  "description": "Standard TMDB API error envelope returned on 4xx/5xx responses.",
  "type": "object",
  "properties": {
    "status_code": {
      "type": "int32",
      "description": "TMDB-internal status code (not the HTTP code).",
      "examples": [
        34
      ]
    },
    "status_message": {
      "type": "string",
      "description": "Human-readable error message describing the problem.",
      "examples": [
        "The resource you requested could not be found."
      ]
    },
    "success": {
      "type": "boolean",
      "description": "Always false on error responses.",
      "examples": [
        false
      ]
    }
  },
  "required": [
    "status_code",
    "status_message",
    "success"
  ]
}