RFC 9110: HTTP semantics reorganised

Summary

In June 2022, Roy Fielding, Mark Nottingham and Julian Reschke specified the meaning of HTTP independently of the transport version in RFC 9110. Methods, status codes, fields and content negotiation have since applied equally to HTTP/1.1, HTTP/2 and HTTP/3, whose wire formats are in separate RFCs. The document obsoletes nine older RFCs, including the RFC 7230 to 7235 series from 2014 and RFC 2818 on HTTPS.

Semantics separated from the wire

Until 2014 HTTP/1.1 was one big document, then a series of six RFCs that still mixed semantics and message format. With HTTP/2 and HTTP/3 a common foundation was needed: RFC 9110 describes what a request means, RFC 9112, RFC 9113 and RFC 9114 describe how it is transmitted.

Caching is in RFC 9111. Header fields simply became fields, because they can appear in the header and the trailer.

A status code as legacy

Section 15.5.19 is titled 418 (Unused). RFC 2324, an April Fools' joke about a protocol for coffee pots, had invented 418 for teapots. The code was deployed as a joke so often that, according to RFC 9110, it is unusable for any future purpose.

RFC 9110 therefore keeps it reserved instead of reassigning it. So status codes also have a history that cannot simply be deleted.

Ideas

  • HTTP semantics apply equally to all versions.
  • Wire formats are in separate RFCs per version.
  • Methods have defined properties such as safe and idempotent.
  • Fields can appear in the header or the trailer of a message.
  • Status code 418 stays reserved permanently.
  • RFC 9110 also obsoletes RFC 2818 on HTTPS.

Insights

  • Separating meaning from transmission makes it possible to introduce new transports without redefining applications.
  • Fun in standards has consequences: an April Fools' joke permanently blocks a status code.

Facts

  • RFC 9110 appeared in June 2022 with the status Internet Standard.
  • The document is 194 pages long.
  • It obsoletes RFC 2818, RFC 7230 to 7233, RFC 7235, RFC 7538, RFC 7615 and RFC 7694.
  • RFC 9111 on caching and RFC 9112 on HTTP/1.1 appeared at the same time.

References

Remarks

  • Roy Fielding was already a co-author of RFC 2616, the HTTP/1.1 specification from 1999.

Recommendations

  • For questions of HTTP meaning, cite RFC 9110, no longer RFC 2616 or RFC 7231.
  • Mind the idempotency of methods when retrying after connection failures.
  • Let your own APIs make do with existing status codes instead of inventing new ones.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.