ardalis / Result

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

Add the ability to return an error body with the Result.NotFound() extension #96

Closed berv63 closed 2 years ago

berv63 commented 2 years ago

95

Replicated most of the behavior of .Error() but also made it so that if no string is provided it continues to use the standard 404 with no body.

ardalis commented 2 years ago

I see you got a PR created so ignore my other comment on the issue. :)

ardalis commented 2 years ago

Thanks!