Server - Technical Reference - v26.4.1
    Preparing search index...

    Class ApiError

    A standardized exception class for all API-related failures.

    This class extends the native Error to include HTTP status codes, machine-readable error codes, and an array of specific error details (e.g., validation failures).

    throw new ApiError(400, SystemCustomErrorMsgByCode.INVALID_INPUT, undefined, ["Email is required"]);
    

    Hierarchy

    • Error
      • ApiError

    Implements

    Index
    errors: unknown[]
    stack?: string
    status: number
    success?: boolean