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

Fix 405 HTTP status description #1479

Merged
merged 1 commit into from May 3, 2019
Merged

Fix 405 HTTP status description #1479

merged 1 commit into from May 3, 2019

Commits on May 3, 2019

  1. Fix 405 HTTP status description

    The https://developer.mozilla.org/en-US/docs/Web/HTTP/Status page do say that the 405 should not be returned for GET and HEAD. But if you click on that 405 link it will open https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 , and there there's nothing about mandatory methods.
    
    On that page you will get the RFC link https://tools.ietf.org/html/rfc7231#section-6.5.5 , and again, there's nothing about mandatory methods.
    
    The restful documentation also doesn't talk about mandatory methods for 405: https://restfulapi.net/http-status-codes/
    
    Spring Framework (a well know framework for Java) has some configuration for the Spring Data Rest project that will result in GET requests returning 405.
    
    Since the RFC should be the winner here, and the divergence between the mozilla's pages, I'm proposing this fix to remove the misleading description.
    rafaelrenanpacheco committed May 3, 2019
    Copy the full SHA
    43886fd View commit details
    Browse the repository at this point in the history