chridou / http-api-problem

A problem type to be returned by HTTP APIs
Apache License 2.0
53 stars 12 forks source link

Add a handler error #9

Closed chridou closed 5 years ago

chridou commented 5 years ago

Some web frameworks(at least actix-web) accept errors that can directly create a response. When designing a web application it can be advantageous to have a specific error where all internal application errors are mapped to to return that from a handler.

Add such an error. Put it under a feature toggle first until it has reached some basic stability