Observe selected HTTP status codes
Observe how fixed success, client-error, and rate-limit statuses appear to a client.
- status codes
- messages
Prediction
Changing the exact status changes the response semantics even when the client and target stay the same. A HEAD request should expose metadata without response content.
Controlled observation
Select one reviewed fixed response for 200, 404, or 429, or issue HEAD for
the fixed 404. The result shows status, fields, and bounded content separately.
Explanation
The first digit gives a class, while the complete code defines the result. An application message cannot redefine that HTTP meaning.
Controlled exercise
Run this observation
Compare the HTTP status, response content, and HEAD's absent content.
Interactive controls require JavaScript. The static response and portable examples remain available below.
Ready. No request has run.
Controlled request
- Method
- GET
- URL
https://lab.httpclarity.com/v1/status/200- Permitted headers
- None
- Body
- None
Browser-observed response
No live response yet. The representative static example remains useful without JavaScript or the Worker.
Static response example
HTTP/1.1 200 OK
Content-Type: application/json
X-Lab-Scenario: status
{"scenario":"status","status":200}Timing is browser elapsed time. Fetch hides Set-Cookie, raw wire bytes, reliable compressed size, and some redirect details.
Portable examples
'curl' '--include' '--request' 'GET' 'https://lab.httpclarity.com/v1/status/200'Scroll horizontally to read any long lines.const response = await fetch("https://lab.httpclarity.com/v1/status/200", {
"method": "GET"
});
console.log(response.status, await response.text());Scroll horizontally to read any long lines.<?php
$options = ['http' => [
'method' => 'GET',
'ignore_errors' => true,
]];
$context = stream_context_create($options);
$body = file_get_contents('https://lab.httpclarity.com/v1/status/200', false, $context);
var_dump($http_response_header, $body);Scroll horizontally to read any long lines.Need a full API client? Copy the generated cURL command, then import it in Hoppscotch. HTTPClarity sends no request data to Hoppscotch.
Continue in Hoppscotch (opens in a new tab)