http: use specific error class for invalid HTTP method case