Fix some guard code to raise a better error.
Add a test for unsupported requests.