Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom 404 #193

Open
mhemmings opened this issue Jul 26, 2016 · 1 comment
Open

Custom 404 #193

mhemmings opened this issue Jul 26, 2016 · 1 comment

Comments

@mhemmings
Copy link

The default 404 message from rest.MakeRouter is not customisable.

Yes, writing a custom error handler in general is trivial, however I can't seem to find a way to override this default behaviour for requests that don't match a route.

@mhemmings
Copy link
Author

Same thing for method not allowed.
There should be a way to define a custom error response format for all internal errors and any response from rest.Error

while-loop added a commit to while-loop/go-json-rest that referenced this issue Mar 8, 2017
The previous version only had the error string as customizable, so I included the ability to modify the whole reponse. See issue ant0ine#193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant