lightmy.day

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/json

References

Related HTTP headers

Related HTTP status codes