Home > @infiniteobjects/express-cloud-function > Utils > createHttpError
Creates an HTTP ERROR
Signature:
static createHttpError<N extends number>(code: N): HttpError<number>;
Parameter | Type | Description |
---|---|---|
code | N | the status code as a number |
Returns:
HttpError<number>