tfredrich / RestApiTutorial.com

HTML Source code for www.RestApiTutorial.com
http://www.RestApiTutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.06k stars 1.48k forks source link

HTTP Methods: Use 405 when appropriate #42

Closed mfulton26 closed 7 years ago

mfulton26 commented 7 years ago

Use 405 (Method Not Allowed) instead of 404 (Not Found) when a resource exists at the given locator but does not support the specified method (e.g. PUT, PATCH, DELETE on a collection).