DenisFrezzato / hyper-ts

Type safe middleware architecture for HTTP servers
https://denisfrezzato.github.io/hyper-ts/
MIT License
393 stars 18 forks source link

Add missing mainstream status codes #29

Closed ghost closed 4 years ago

ghost commented 4 years ago

The PR adds missing status codes for broader use.

To not pollute index.ts, status codes are published as a separate module hyper-ts/lib/Status and then merged into Status for backward compatibility.

gcanti commented 4 years ago

Thanks @matticala, what do you mean by "pollute"? I'd rather add them to the existing Status const.

ghost commented 4 years ago

@gcanti oh, nothing negative. It's just the status code list is big, I thought it might reduce the readability of index.ts.

gcanti commented 4 years ago

Thanks @matticala