HTTP Security Headers Checker
Check a public website's redirect chain and HTTP security headers, including CSP, HSTS, frame controls, and referrer policy.
Create temporary mock endpoints that return configurable HTTP status codes and response details for testing client error handling.
Use this sandbox when you need a dependable endpoint that returns the status code your code path is supposed to handle.
Application code often works well on the happy path and becomes fragile around errors, redirects, empty responses, timeouts, and rate limits. A status sandbox gives you a stable URL that intentionally returns a specific HTTP result, so you can exercise those paths without changing a real API, waiting for an outage, or building a temporary endpoint in your own app.
Use a 404 endpoint to check missing-resource messages, a 401 or 403 endpoint to review authentication and permission flows, a 429 endpoint to test rate-limit copy and retry behavior, and a 500 or 503 endpoint to confirm that users see a useful fallback when an upstream service fails. For success paths, 201 and 204 responses are helpful because they catch assumptions about response bodies after create, update, or delete actions.
The sandbox is deliberately predictable. It does not store requests, inspect secrets, or behave like a full mock-server product. That makes it useful for unit tests, manual QA, examples in documentation, uptime monitor configuration, and quick client-side experiments where the only thing you need is a known HTTP response.
The endpoint reads the three-digit status code from the URL path, validates that it is from 200 through 999, and sends that response from utilkit. It supports GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS requests so you can test the methods your client actually sends. JSON is the response format for status codes that can include a body. The JSON body includes the status code, reason phrase when one is registered, request method, path, and query parameters.
Informational 1xx statuses are excluded because they are interim protocol responses, not final responses a mock endpoint can safely return as a completed request. Statuses such as 204 No Content, 205 Reset Content, and 304 Not Modified are sent without a body. Redirect responses such as 301, 302, 303, 307, and 308 include a Location header that points to the 200 sandbox endpoint.
Sandbox responses include Access-Control-Allow-Origin: * so browser-based fetch tests can read the response without extra setup.
An HTTP status code is only one part of a response. Clients may also depend on headers, body shape, content type, redirects, timing, and connection behavior. Use this endpoint to isolate status handling, then add separate tests for malformed JSON, empty bodies, slow responses, network failures, and retry headers.
The semantics for current HTTP status codes are defined in the HTTP specifications, including RFC 9110. A 401 response concerns authentication and normally works with an authentication challenge; 403 indicates refusal despite understanding the request. A 404 can be deliberately used to avoid revealing whether a protected resource exists.
Retry logic should be narrow and bounded. Retrying every failure can duplicate a non-idempotent operation or overload a struggling service. Decide which methods and statuses are safe to retry, respect server guidance such as Retry-After, add backoff and jitter, and cap both attempts and total elapsed time.
Test what the user sees as well as what the code logs. A useful error state explains the next action without exposing stack traces, credentials, internal hostnames, or raw upstream responses. Preserve a correlation identifier when the service provides one. Accessibility checks should include focus movement, live announcements, and recovery with a keyboard.
Do not point production webhooks or irreversible jobs at a disposable test URL. Mock endpoints can be public, temporary, or visible in logs and browser history. Use synthetic data and short-lived identifiers. For automated tests, assert the behavior your client owns rather than depending indefinitely on an external sandbox's exact response body.
Include success responses in the same test matrix. A client that handles errors gracefully can still parse a normal response incorrectly after a refactor. Test redirect following both enabled and disabled, because libraries differ in their defaults and may transform methods across redirects. Record the final URL and response history when diagnosing a surprising status.
Built and maintained by utilkit. Updated . Found an issue? Send corrections to contact@utilkit.com
Check a public website's redirect chain and HTTP security headers, including CSP, HSTS, frame controls, and referrer policy.
Decode Base64 values into UTF-8 text or encode text as standard Base64 in your browser, with clear input and copy controls.
Beautify, minify, validate, and sort JSON in your browser while reviewing syntax errors, nested data, arrays, and object keys.