How to use the isHttpError function from http-errors
Find comprehensive JavaScript http-errors.isHttpError code examples handpicked from public code repositorys.
83 84 85 86 87 88 89 90 91 92
- `status` - the status code as a number - `error` - the error object to extend - `properties` - custom properties to attach to the object ### createError.isHttpError(val) Determine if the provided `val` is an `HttpError`. This will return `true` if the error inherits from the `HttpError` constructor of this module or matches the "duck type" for an error this module creates. All outputs from
114
0
24
+ 57 other calls in file
http-errors.NotFound is the most popular function in http-errors (1819 examples)