ardalis / Result

A result abstraction that can be mapped to HTTP response codes if needed.
MIT License
847 stars 100 forks source link

Add error messages to Forbidden and UnAuthorized results #185

Closed Ahammdan closed 2 months ago

Ahammdan commented 3 months ago

For certain error states such as Forbidden and UnAuthorized, I found that I require to have some texts in the errors that would help in providing the end user with the reason of the error state. This behavior is similar to what was implemented with the conflict and NotFound error result.

I am willing to work on a PR for this if it's acceptable.

ardalis commented 3 months ago

Sure, that makes sense, as long as they're optional. Go for it, thanks.

ardalis commented 2 months ago

Fixed by #190