core-utils
    Preparing search index...
    interface Issue {
        code: ErrorCode;
        message?: string;
        path?: (string | number)[];
        status?: 400 | 401 | 403 | 404 | 409 | 422 | 429 | 500;
        title?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    code: ErrorCode
    • Use ERROR_CODES – Or pass any custom string (e.g. "invalidPromoCode") for new cases
    message?: string

    Details about what caused the issue

    path?: (string | number)[]

    Path to issue location

    status?: 400 | 401 | 403 | 404 | 409 | 422 | 429 | 500

    HTTP status code (errors.status in JSON:API).

    title?: string

    Short, reusable summary of the problem (errors.title). Keep it concise and localizable (e.g. "Invalid Input").