ardalis / Result

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

NotFound override to return a body #95

Closed berv63 closed 2 years ago

berv63 commented 2 years ago

We'd like to use the result.NotFound() but designate the difference between 404 (route doesnt exist) and 404 (resource doesnt exist) by returning an error in the body.

berv63 commented 2 years ago

I already have a new branch locally with these changes and would be happy to submit a PR. But I'm getting access deinied.

ardalis commented 2 years ago

You probably need to fork this repo, so your repo recognizes it as a related remote? I'm definitely open to the PR.

berv63 commented 2 years ago

Yep I got someone familiar with the pattern to help me get a PR in. See above ^. Thanks!