Nhost · Schema

ErrorResponse

Standard error envelope returned by Nhost REST services.

GraphQLPostgreSQLAuthenticationFile StorageServerless FunctionsReal-TimeOpen SourceFirebase AlternativeBackend as a ServiceBaaS

Properties

Name Type Description
status integer HTTP status code of the error.
message string Human-readable description of the error.
error string Machine-readable error code.
View JSON Schema on GitHub

JSON Schema

nhost-error-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nhost.io/schemas/error-response",
  "title": "ErrorResponse",
  "description": "Standard error envelope returned by Nhost REST services.",
  "type": "object",
  "properties": {
    "status": {
      "type": "integer",
      "description": "HTTP status code of the error.",
      "example": 401
    },
    "message": {
      "type": "string",
      "description": "Human-readable description of the error.",
      "example": "Email and password are required"
    },
    "error": {
      "type": "string",
      "description": "Machine-readable error code.",
      "example": "invalid-email-password"
    }
  },
  "required": ["status", "message"]
}