go-json-rest icon indicating copy to clipboard operation
go-json-rest copied to clipboard

Custom 404

Open mhemmings opened this issue 8 years ago • 1 comments

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 avatar Jul 26 '16 22:07 mhemmings

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

mhemmings avatar Jul 27 '16 11:07 mhemmings