Triplit · Schema

Triplit Error Response

Error response returned by the Triplit HTTP API

DatabaseReal-timeSyncLocal-firstDeveloper ToolsTypeScriptOpen Source

Properties

Name Type Description
name string Error type name
message string Human-readable description of the error
status integer HTTP status code associated with this error
View JSON Schema on GitHub

JSON Schema

triplit-error-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://www.triplit.dev/schemas/error",
  "title": "Triplit Error Response",
  "description": "Error response returned by the Triplit HTTP API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Error type name",
      "example": "TriplitError"
    },
    "message": {
      "type": "string",
      "description": "Human-readable description of the error",
      "example": "No token provided"
    },
    "status": {
      "type": "integer",
      "description": "HTTP status code associated with this error",
      "example": 401
    }
  },
  "required": ["name", "message", "status"],
  "additionalProperties": false
}