Returns 405 status header instead of 404 for restful controllers