Dead Drop · Schema

Error

Standard error envelope returned by the dead-drop API.

MessagingPrivacyAnonymousOpen Source

Properties

Name Type Description
error object
View JSON Schema on GitHub

JSON Schema

dead-drop-error-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dead-drop/main/json-schema/dead-drop-error-schema.json",
  "title": "Error",
  "description": "Standard error envelope returned by the dead-drop API.",
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Machine-readable error code (e.g. NOT_FOUND, UNAUTHORIZED, INVALID_REQUEST)."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of the error."
        }
      },
      "required": ["code", "message"]
    }
  },
  "required": ["error"]
}