Skip to main content

HTTP contracts


Reference · HTTP contracts

Reference purpose — Document the wire behavior that clients and intermediaries actually observe.
Predictable methods, status codes, headers, body rules, OPTIONS, HEAD, and malformed input responses.

Key concepts

OPTIONS

Capability discovery

HEAD

Metadata without body

400

Malformed request

Reference model

Contract summary

Interpretation

HTTP details are compatibility surface; a small inconsistency can break caches, SDKs, proxies, or browser behavior.
Reference note HTTP correctness is part of the framework API, even when the application code is only a few lines.

Implementation notes

Decision lens

References

Last modified on September 10, 2026