field Registered
Verified 2026-09-18 · registry updated 2026-08-28

Content-Type

Describes the media type of a request or response body.

Set Content-Type accurately, including a charset where needed. Servers should validate request types instead of parsing whatever bytes arrive.

httpheadercontent

Reference (http)

Content-Type: application/json; charset=utf-8

Set Content-Type accurately, including a charset where needed. Servers should validate request types instead of parsing whatever bytes arrive.

Common mistakes

  • Relying on MIME sniffing or using application/json for a body that is not JSON.

IANA registry: http-fields/field-names

Registry reference: RFC 9110, Section 8.3: HTTP Semantics

Permalink: https://merginit.com/reference/http/field-content-type