DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk3 min

What Is an HTTP Response Header? A Clear Guide to Fields, Status Codes, and Content

HTTP response headers are named fields that provide metadata and handling details before response content. Learn how they differ from status codes and the body.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An HTTP response header is a named field in an HTTP response that carries information about the response before any content. It can describe the returned representation, set caching instructions, identify a resource, or provide other context. The status code is separate: it reports the outcome of the request.

Where response headers fit in an HTTP response

HTTP specifications use the term header field; “header” is the common shorthand. A field is an extensible name-and-value pair in the response header section. Fields can modify or extend message semantics, describe the sender or content, or provide context. They are metadata, not the response body.

As an Amazon Associate I earn from qualifying purchases.

In HTTP/1.1, a response is commonly represented with a status line, followed by header fields, a blank line, and then content when present. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
HTTP/1.1 201 Created
Content-Type: application/json
Location: https://example.com/users/123
Cache-Control: no-store

{"message":"New user created"}

Here, 201 Created is the status code and reason phrase in the status line, not a header field. Content-Type describes the representation, Location identifies a resource associated with the response, and Cache-Control supplies caching directives. The JSON object after the blank line is content. These example values illustrate common roles; actual field values and rules depend on the response and the relevant field definition. See the IETF’s RFC 9110, HTTP Semantics.

What a response header does

A response field gives the client details that complement the request’s outcome. The status code answers, in broad terms, what happened; fields provide additional information about the response, its representation, or how it may be handled. A field’s scope depends on its definition, so not every field is simply a description of the body.

  • Content-Type identifies the media type of the returned representation.
  • Cache-Control provides caching directives.
  • Location can identify a related resource or a newly created resource.
  • Date and Server are examples of other commonly encountered response fields, each with its own defined semantics.

For example, a response with 201 Created can use Location to point to the resource that was created, while Content-Type describes the representation returned in the response. The status code and fields work together, but they are different parts of the message.

Response headers, status codes, and content compared

Part of the response Where it appears Main purpose Example
Status code In response control data; in HTTP/1.1, shown on the status line before fields Indicates the outcome of the request 201 Created
Header field In the header section, before content when present Adds information or instructions defined by that field Content-Type: application/json
Content After the header section, when present Carries the returned representation data {"message":"New user created"}

How header fields are written and displayed

Field names are case-insensitive: Content-Type and content-type refer to the same field name. In HTTP/1.x, fields are conventionally displayed as a name, a colon, and a value. HTTP/2 and later use different wire formats; developer tools commonly display lowercase field names, and protocol pseudo-headers are colon-prefixed. A tool’s display is not proof that all HTTP versions use identical syntax. For details, see MDN’s HTTP headers reference.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you are defining a custom field, do not assume it must begin with X-. That prefix convention was deprecated in 2012; interoperable fields should use a properly defined and registered name. MDN explains the convention and its history in its HTTP headers reference.

Rank #3
Sale
HTTP: The Definitive Guide
  • Used Book in Good Condition

Can a response have headers but no content?

Yes. A response to a HEAD request has no content, but it generally carries the fields that a corresponding GET response would have, subject to the exceptions in the standard. Those fields can still provide useful representation metadata even though there is nothing after the header section to read as content. RFC 9110 defines this behavior in its section on the HEAD method.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Key distinction

An HTTP response header is one field in the response’s header section—not the status code and not the content itself. Its name determines what its value means, and the applicable field definition determines how that value should be interpreted.

Quick Recap

SaleBestseller No. 3
HTTP: The Definitive Guide
HTTP: The Definitive Guide
Used Book in Good Condition
$26.04
SaleBestseller No. 4
HTTP Pocket Reference: Hypertext Transfer Protocol
HTTP Pocket Reference: Hypertext Transfer Protocol
Used Book in Good Condition
$6.94
SaleBestseller No. 5
Best Value
Rank #4

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.