Added the 501 error on unsupported methods