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

feat: allow StatusCode() for errors returned in Strict Server #1547

Open
jamietanna opened this issue Apr 19, 2024 · 2 comments
Open

feat: allow StatusCode() for errors returned in Strict Server #1547

jamietanna opened this issue Apr 19, 2024 · 2 comments

Comments

@jamietanna
Copy link
Collaborator

To allow controlling what actually gets returned

@jamietanna
Copy link
Collaborator Author

May be trivial to do it yourself with the provided error handler

@deefdragon
Copy link
Contributor

Returning an echo.ErrFoo as the error should properly be unwrapped and the correct response code returned.

Not sure if this is the ideal implementation tho as it leaks using echo into the strict implementation. Also not sure if that is worse that duplicating the already-existing error response codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants