Codit / practical-api-guidelines

Practical guidelines for building & designing APIs with .NET.
MIT License
16 stars 5 forks source link

Provide global exception handler #23

Closed tomkerkhove closed 6 years ago

tomkerkhove commented 6 years ago

Provide global exception handler that returns application/problem+json response

samneirinck commented 6 years ago

Might be relevant: https://www.strathweb.com/2018/07/centralized-exception-handling-and-request-validation-in-asp-net-core/

tomkerkhove commented 6 years ago

Good tip 👍 Might have some time on friday to pick this one up

tomkerkhove commented 6 years ago

This is now available based on good blog post above.

@MassimoC we should align bad request approach with this but I would do this post public as this is an optimization. I suggest we create a dedicated issue for that and added this to the Arcus planning long-term.

Feel free to re-open if you don't agree.