Return the proper response for unsupported HTTP methods. (#440)