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

Can you provide a callback function for the error in request path 404? If there is a business interruption, please handle the path error information uniformly #371

Open
daleiyinsi opened this issue Nov 30, 2023 · 4 comments

Comments

@daleiyinsi
Copy link

pitaya/handler, url not found error

@daleiyinsi
Copy link
Author

Similar to gin's noRoute and noMethod, it allows me to customize error data structures

@daleiyinsi
Copy link
Author

for example , I don't want this {"code":"PIT-404","msg":"pitaya/handler: gateway.gateway.gadga not found"} data. I hope to customize the data structure

@bruce1125
Copy link
Contributor

what about checking the returned ERROR type?

@felipejfc
Copy link
Contributor

Should be a simple change if you wish to send a contribution

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

3 participants