agrio · Schema

Error Response

Standard error response.

AgriculturePlant DiseasePest DetectionAICrop Advisory

Properties

Name Type Description
error string Error code or type.
message string Human-readable error message.
status integer HTTP status code.
View JSON Schema on GitHub

JSON Schema

agrio-error-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/agrio/refs/heads/main/json-schema/agrio-error-response-schema.json",
  "title": "Error Response",
  "description": "Standard error response.",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Error code or type.",
      "example": "unauthorized"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message.",
      "example": "Invalid or missing API key."
    },
    "status": {
      "type": "integer",
      "description": "HTTP status code.",
      "example": 401
    }
  }
}