About MIME types

The
Accept
and
Content-Type
headers use MIME types to specify the type of message content.

There are basic MIME types for simple files and web formats:
text/plain
,
text/html
,
application/xml
,
application/json
,
application/octet-stream
,
text/css
,
text/javascript
...

There are MIME types for all known file formats:
image/jpeg
,
image/png
,
audio/mpeg
,
application/pdf
,
application/zip
,
font/woff
,
video/mp4
...

There are specific MIME types related to browsers and APIs:
multipart/mixed
,
multipart/form-data
,
multipart/byteranges
,
application/x-www-form-urlencoded
...

Sometimes, extra information are added to a type. Text format can have a charset specification:
text/plain;charset=UTF-8


See: RFC-2045, RFC-2046, RFC-2047, RFC-4288, RFC-4289, RFC-2049; and MDN: MIME type
Examples:
Content-Type: text/plain;charset=utf-8
Comments