Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Return full response with the Boom HTTP error #173
With v12, the shortcut methods call back with a Boom error upon HTTP error. This makes it easier to handle HTTP errors when you want to treat them as errors, but it makes it trickier to handle them when you consider them a part of your daily life.
Would there be an objections, if the Boom error included the full
This would allow code like this:
At the moment to handle the 2xx, 3xx and 4xx+ one needs to make checks twice - in the
I'd probably also include