Fake Mirrors
    Preparing search index...

    Class HttpStatusWrap

    Wrapper class for HTTP message status codes.

    • get isFrozen(): boolean

      Checks if the wrapper is frozen (read-only).

      Returns boolean

      true if the wrapper is frozen, false otherwise.

    • Checks if the status is in the client error range (400-499).

      Returns boolean

      true if the status is in the range, false otherwise.

    • Checks if the status is in the information range (100-199).

      Returns boolean

      true if the status is in the range, false otherwise.

    • Checks if the status is in the redirect range (300-399).

      Returns boolean

      true if the status is in the range, false otherwise.

    • Checks if the status is in the server error range (500-599).

      Returns boolean

      true if the status is in the range, false otherwise.

    • Checks if the status is in the success range (200-299).

      Returns boolean

      true if the status is in the range, false otherwise.

    • Checks if the status is not in the valid range (100-599).

      Returns boolean

      true if the status is outside the valid range, false otherwise.

    • Resets the status to the default value 0.

      Returns this

      This wrapper for method chaining.

      Error If the wrapper is frozen.

    • Sets the status value.

      Parameters

      • status: number

        The status code to set.

      Returns this

      This wrapper for method chaining.

      Error If the wrapper is frozen.