I noticed that the Mozilla HTTP response codes documentation states that
The methods PUT, DELETE, and OPTIONS can never result in a 200 OK response.
However it doesn't make clear what response should actually be used. My best guess would be 204:
204 : No Content
There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.
Can anyone comment as to whether or not this is the correct code to be using to response to an OPTIONS request?
I use 204 No Content
because an OPTIONS
response doesn't have any content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With