Skip to content

slaveofcode/example-multi-error-handler-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POC of Multi Error Handling via express router

Installation

npm i

Running

npm start

Test API

curl http://localhost:8989/ping # { "ok": true }

curl http://localhost:8989/v1/users # [{"name":"foo"},{"name":"bar"}]

curl http://localhost:8989/v1/users/2 # {"error":"something wrong v1-users: User inactive"}

curl http://localhost:8989/v1/users/3 # {"error":"User not found"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published