Error Handling

← Back to Platform Architecture

Error Handling

Overview

All Stratum Platform API errors follow a consistent response format. This document defines error types, HTTP status codes, and recovery strategies.

Error Response Format

All error responses use this envelope:
{
  "status": 400,
  "error": {
    "type": "VALIDATION_ERROR",
    "message": "Validation failed",
    "details": {
      "field": "narrative_content",
      "constraint": "required",
      "value": null
    }
  },
  "timestamp": "2026-04-14T12:30:45Z",
  "request_id": "req-abc123"
}
Fields: