Open jenstroeger opened 4 years ago
Addendum Should have tried before I asked. That’s exactly how it works, actually.
@leplatrem, mind if I expand on the documentation a bit? This is quite a handy detail. Or did I miss it somewhere?
@jenstroeger Of course! please do!
@leplatrem, done with this PR.
Considering that Pyramid HTTPExceptions inherit from
Response
andException
I can raise or return such objects. However, I was wondering how that plays along with Cornice’srequest.errors
dictionary.What’s the recommended way of filling that
errors
dictionary and then raising an HTTP error response—if that’s doable at all?Something like
creates a new
Response
and theerrors
dictionary isn’t being used, correct?