Return a HTTP 405 for unsupported HTTP methods

Change-Id: Ia12d4c49527ff8a03f0ac80a00081c3d4154a752