-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
Description
I was very surprised to discover that getReasonPhrase throws an exception when given an HTTP status code that the library does not know about.
Could we add non-throwing variants of getReasonPhrase and getStatusCode that return undefined instead of throwing an exception?
Having to catch the exception just to handle these cases gracefully is not very ergonomic.
I would be willing to open a PR for this if it would be accepted.
Dalfons0