SIO-1234 HTTP 405 middleware

Change-Id: If54201edb9601824b7e086042792b1d9a8ddceb5
Merge "SIO-1234 HTTP 405 middleware"