Is HTTP 303 acceptable for other HTTP methods?
问题 RESTful Web Services encourages the use of HTTP 303 to redirect clients to the canonical representation of a resource. It only discusses topic in the context of HTTP GET . Does this apply to other HTTP methods as well? If a client attempts a HTTP PUT or DELETE to a non-canonical URI, is it acceptable (and/or recommended) to return HTTP 303? What is the best practice and why? 回答1: This status code is generally applicable to any HTTP method. It is primarily used to allow the output of a POST