Documentation
    Preparing search index...

    Represents an HTTP error that extends the standard Error object. Includes optional status code properties for HTTP response handling.

    interface HttpError {
        cause?: unknown;
        message: string;
        name: string;
        stack?: string;
        status?: StatusCodes;
        statusCode?: StatusCodes;
    }

    Hierarchy

    • Error
      • HttpError
    Index

    Properties

    cause?: unknown
    message: string
    name: string
    stack?: string
    status?: StatusCodes

    Alternative property for HTTP status code

    statusCode?: StatusCodes

    The HTTP status code for the error response