Standard error response for the stable evaluators and evaluation-rules API.
Use the HTTP status for the broad failure class and code for programmatic handling. details is included when field-level validation or retry information is available.
code
details
{ * message: "Invalid request body", * code: LangfuseAPI.PublicApiErrorCode.InvalidBody, * details: { * issues: [{ * code: "invalid_type", * message: "Invalid input", * path: ["definition"] * }] * } * } Copy
{ * message: "Invalid request body", * code: LangfuseAPI.PublicApiErrorCode.InvalidBody, * details: { * issues: [{ * code: "invalid_type", * message: "Invalid input", * path: ["definition"] * }] * } * }
{ * message: "Evaluator not found", * code: LangfuseAPI.PublicApiErrorCode.ResourceNotFound * } Copy
{ * message: "Evaluator not found", * code: LangfuseAPI.PublicApiErrorCode.ResourceNotFound * }
{ * message: "Rate limit exceeded", * code: LangfuseAPI.PublicApiErrorCode.RateLimited, * details: { * retryAfterSeconds: 60, * limit: 1000, * remaining: 0, * resetAt: "2026-03-30T10:00:00.000Z" * } * } Copy
{ * message: "Rate limit exceeded", * code: LangfuseAPI.PublicApiErrorCode.RateLimited, * details: { * retryAfterSeconds: 60, * limit: 1000, * remaining: 0, * resetAt: "2026-03-30T10:00:00.000Z" * } * }
Stable machine-readable error code.
Optional
Optional structured validation or rate-limit context.
Human-readable description of the failure.
Standard error response for the stable evaluators and evaluation-rules API.
Use the HTTP status for the broad failure class and
codefor programmatic handling.detailsis included when field-level validation or retry information is available.Example
Example
Example