HTTP headers
Accept HTTP Header Meaning
Accept tells the server which media types the client can read.
Meaning
The client is listing response formats it prefers, such as HTML, JSON, or images.
Where it appears
Browsers and API clients send it on requests when the response format matters.
What to check
Check whether the server can produce one of the listed media types and whether Vary should include Accept.
Example
Accept: application/jsonReferences
- Registry
- IANA HTTP Field Name Registry
- Guide
- MDN Accept