TypeDoc all the thngs
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import {ErrorWithContext, HTTPStatus, HTTPMessage} from "@extollo/util"
|
||||
|
||||
/**
|
||||
* An error class that has an associated HTTP status.
|
||||
*
|
||||
* When thrown inside the request lifecycle, this will result in the HTTP
|
||||
* status code being applied to the response.
|
||||
*/
|
||||
export class HTTPError extends ErrorWithContext {
|
||||
constructor(
|
||||
public readonly status: HTTPStatus = 500,
|
||||
|
||||
Reference in New Issue
Block a user