UNPKG
sharp-error-handler
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.1.0
an error handler that integrates with Hapi/boom to manage all server errors through JSON file
sharp-error-handler
/
test
/
errorsData.json
12 lines
(10 loc)
•
193 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
{
"invalidId"
:
{
"statusCode"
:
400
,
"message"
:
"This Id is invalid"
}
,
"notAuthorized"
:
{
"statusCode"
:
403
,
"message"
:
"You're not authorized to access this item"
}
}