Box Developer Documentation

Client error

A generic error

string
error

error

Value is always error

string
item_name_invalid

A Box-specific error code

Value is one of created,accepted,no_content,redirect,not_modified,bad_request,unauthorized,forbidden,not_found,method_not_allowed,conflict,precondition_failed,too_many_requests,internal_server_error,unavailable,item_name_invalid,insufficient_scope

associative array

A free-form object that contains additional context about the error. The possible fields are defined on a per-endpoint basis. message is only one example.

string
https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/

A URL that links to more information about why this error occurred.

string
Method Not Allowed

A short message describing the error.

string
abcdef123456

A unique identifier for this response, which can be used when contacting Box support.

integer (int32)
400

The HTTP status of the response.

Response Example

{
  "type": "error",
  "code": "item_name_invalid",
  "context_info": {
    "message": "Something went wrong"
  },
  "help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
  "message": "Method Not Allowed",
  "request_id": "abcdef123456",
  "status": 400
}