Accept

The media types the client can handle, in order of preference.

Explained

Examples

Example

Accept: application/json, text/plain;q=0.9, */*;q=0.8

Watch out

q values run from 0 to 1 and rank the choices. A server that cannot match any should answer 406 Not Acceptable, but most send their default instead.

Defined in RFC 9110 §12.5.1.

Other common headers