Handle unrecognised request formats

This also changes the response status code to the more appropriate 406