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

Fazer o controller parar de devolver 500 quando um método HTTP não é encontrado #624

Closed
filipedeschamps opened this issue Aug 7, 2022 · 1 comment
Labels
back Envolve modificações no backend

Comments

@filipedeschamps
Copy link
Owner

Contexto

Na missão de ter zero erros 500, há uma forma de consistentemente gerar um que é enviar um method HTTP desconhecido pelo endpoint. Por exemplo, se em um endpoint que só aceita GET você enviar um POST, será retornado um erro 500 ao invés de 404.

Execução

@filipedeschamps filipedeschamps added the back Envolve modificações no backend label Aug 7, 2022
@filipedeschamps
Copy link
Owner Author

Fechado por #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back Envolve modificações no backend
Projects
None yet
Development

No branches or pull requests

1 participant