Create and log an HTTP error.

  • Parameters

    • message: string

      The error message.

    • status: number

      The HTTP status code.

    Returns HttpError

    The created HTTP error.