Best Practices - Why 501 error code?
I've only seen APIs return 405 Method Not Allowed when the client sends an unsupported HTTP method, never 501. Using a 4xx error code seems more appropriate here, since it's client error instead of a server error. Why are we recommending 501?