prettymuchbryce/http-status-codes

Heads up

Closed this issue · 3 comments

Node provides a map to access the reason-phrase by status code, but does not provide the reverse.

I created this module a while back for myself because I prefer the use of constants over littering my code with magic numbers.

i.e.

response.status(HttpStatus.OK)

vs

response.status(200)

Make sense ?

sure!