Langfuse JS/TS SDKs
    Preparing search index...

    Interface PublicApiError

    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.

    {
    * 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
    * }
    {
    * message: "Rate limit exceeded",
    * code: LangfuseAPI.PublicApiErrorCode.RateLimited,
    * details: {
    * retryAfterSeconds: 60,
    * limit: 1000,
    * remaining: 0,
    * resetAt: "2026-03-30T10:00:00.000Z"
    * }
    * }
    interface PublicApiError {
        code: PublicApiErrorCode;
        details?: PublicApiErrorDetails;
        message: string;
    }
    Index

    Properties

    Properties

    Stable machine-readable error code.

    Optional structured validation or rate-limit context.

    message: string

    Human-readable description of the failure.