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

Código de retorno errado quando o método não é suportado pelo recurso #26

Closed
doamaral opened this issue May 29, 2020 · 5 comments
Closed
Labels
bug Something isn't working new issue

Comments

@doamaral
Copy link
Contributor

** Descreva o bug **
Código de retorno errado quando o método não é suportado pelo recurso. O código está 404, quando deveria ser 405 - Method not Allowed

referencias:
https://tools.ietf.org/html/rfc7231#section-6.5.5
https://developer.mozilla.org/pt-BR/docs/Web/HTTP/Status/405

Reproduzir
Etapas para reproduzir o comportamento:

  1. Enviar DELETE para um Produto
  2. Ver o erro

Comportamento esperado
deve retornar 405

** Capturas de tela **
Se aplicável, adicione capturas de tela para ajudar a explicar seu problema.

** Contexto (preencha as seguintes informações): **

** Contexto adicional **

@doamaral doamaral added bug Something isn't working new issue labels May 29, 2020
@PauloGoncalvesBH
Copy link
Member

Vou ajustar ainda hoje, muito obrigado

@doamaral
Copy link
Contributor Author

No caso são todos os métodos que não são permitidos para todos os recursos

@PauloGoncalvesBH
Copy link
Member

Liberado na v2.1.2.

@PauloGoncalvesBH
Copy link
Member

@all-contributors please add @doamaral for talk and bug

@allcontributors
Copy link
Contributor

@PauloGoncalvesBH

I've put up a pull request to add @doamaral! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new issue
Projects
None yet
Development

No branches or pull requests

2 participants