Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sinco/tests/deps.ts>Drash.Errors.HttpError

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
class Drash.Errors.HttpError
extends Error
import { Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { HttpError } = Drash.Errors;

This class is for throwing errors in the request-resource-response lifecycle.

Constructors

new
HttpError(code: number, message?: string)

Construct an object of this class.

Properties

code: number

A property to hold the HTTP response code associated with this exception.