UNPKG
throw-http-errors
Version:
latest (4.0.1)
4.0.1
3.2.0
3.0.1
2.0.0
1.0.17
1.0.15
1.0.13
1.0.11
1.0.10
1.0.9
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.1
1.0.0
Custom errors for HTTP status codes.
github.com/eldimious/throw-error
eldimious/throw-error
throw-http-errors
/
dist
/
CreateCustomError.d.ts
6 lines
(5 loc)
•
212 B
TypeScript
View Raw
1
2
3
4
5
6
export
declare
class
CreateCustomError
extends
Error
{
readonly
code
:
string
|
number
;
readonly
status
:
number
;
constructor
(
status
:
number
,
name
?:
string
,
message
?:
string
,
code
?:
string
|
number
); }