I noticed that the Mozilla HTTP response code documentation claims that
The PUT, DELETE, and OPTIONS methods can never result in a 200 OK Response.
However, it is not clear which answer should be used. My best guess would be 204:
204: No content
There is no content to send this request, but headers may be useful. A user agent can update its cached headers for this resource with new ones.
Can anyone comment on whether this code is really used to respond to an OPTIONS request?
source share