Docs
REST APIErrors

Errors

HTTP error codes and error response format used by the Moviie REST API.

Errors

All error responses use the same JSON format:

{
  "error": "Human-readable description of what went wrong.",
  "code": "MACHINE_READABLE_CODE"
}

The code field is only present on certain errors.

HTTP status codes

StatusMeaning
200Success
201Resource created
400Bad request: malformed input
401Unauthenticated: missing or invalid API key
403Forbidden: you lack permission for this action
404Not found: resource does not exist or does not belong to your organization
422Unprocessable entity: validation failed
429Rate limit exceeded
500Internal server error

Validation errors

Validation errors (422) include a field-level breakdown:

{
  "errors": {
    "name": ["Name is required"],
    "description": ["Must be at most 500 characters"]
  }
}

Common pitfalls

  • A 404 on a resource that exists may mean it belongs to a different organization than the one your key is scoped to.
  • 403 responses with "code": "SUBSCRIPTION_REQUIRED" mean your current plan does not support this action.

On this page