Guide · Security
MIME Types and HTTP Status Codes - Quick Browser Reference
Updated 2026-10-23 · 4 min read
Mime type lookup http status codes usually land in two separate bookmarks - one for application/octet-stream vs application/pdf, one for "why 502 Bad Gateway?" ToolComb keeps both references in the tab alongside URL Parser and User Agent Parser for the same debugging session: headers, paths, clients.
This guide is a quick reference workflow, not RFC memorization. Use MIME Type Lookup and HTTP Status Code Reference when you are configuring uploads, reading CDN errors, or explaining incidents without Stack Overflow roulette.
MIME: extension lies, Content-Type contracts
Browsers and APIs trust Content-Type (and sniffing rules) more than filename extensions. Wrong type causes:
- Download instead of render (
Content-Disposition+application/octet-stream) - XSS when
text/htmlis served for user uploads - Broken charset (
text/plainwithoutcharset=utf-8)
Common fixes:
| Symptom | Check |
|---|---|
.webp not displaying | Type image/webp on object storage |
| JSON parsed as text | application/json; charset=utf-8 |
.wasm fails to instantiate | application/wasm |
| SVG uploaded by users | image/svg+xml - sanitize; SVG is XML |
MIME Type Lookup maps extension ↔ type for quick sanity. Official registry is huge; tools curate common dev types.
HTTP status: who is responsible?
Rough ladder:
- 1xx - informational (rare in app dev)
- 2xx - request reached server logic successfully
- 3xx - redirect; watch
Locationand cache behavior - 4xx - client fault (bad auth, validation, not found)
- 5xx - server or gateway fault
HTTP Status Code Reference for precise phrases.
Incidents in plain English
401 Unauthorized - often missing/invalid auth (name is historical). Check Authorization header, cookie domain, clock skew on JWT exp - decode locally per JWT generate vs decode.
403 Forbidden - authenticated but not allowed. RBAC, WAF, geo block.
404 Not Found - route or object missing. Distinguish app 404 vs CDN 404.
408 / 504 - timeout somewhere (client, load balancer, upstream). Trace IDs beat guessing.
429 Too Many Requests - rate limit; respect Retry-After.
502 / 503 / 504 - gateway or upstream sick; not fixed by MIME changes.
Combine tools on one log line
Example log snippet (redacted):
GET /api/v1/report?token=REDACTED HTTP/1.1" 415
User-Agent: Mozilla/5.0 (... Chrome/141 ...)
Steps:
- 415 → HTTP Status Code Reference - Unsupported Media Type: body
Content-Typerejected. - Paste URL into URL Parser - confirm path and query keys; remove secrets from query in fix, not just in paste.
- Paste UA into User Agent Parser - reproduce on matching browser.
- If upload involved, verify file type in MIME Type Lookup.
Header deep dive: How to read HTTP headers.
Security cluster context
These references are read-only knowledge - they do not verify TLS certs or scan for CVEs. Pair with Best free security and encoding tools for encoding, JWT, and hash tasks.
JWT responses often wrap tokens in JSON (application/json) while attachments use discrete types - do not confuse token string MIME with resource MIME.
CDN and S3 checklist
- Set
Content-Typeat upload time - Set
Cache-Controlseparately - type does not imply caching Content-Encoding: gzipis not a MIME type swapapplication/octet-streamas lazy default breaks preview features
What lookup tools will not do
- Fix misconfigured nginx
types {}blocks - Tell you why your API chose 418
- Replace
curl -vor browser Network panel
They shorten the gap between error code + filename and next hypothesis.
Keep MIME and status references one click away, parse URLs and UAs before you blame the database, redact query tokens, and read headers when 415 or 406 appears - the body type is usually the story.
Frequently asked questions
What is a MIME type used for?
It tells clients how to interpret bytes: text/html, application/json, image/webp. Servers send it in Content-Type; browsers use it for rendering and download behavior.
Why do I need a MIME type lookup tool?
Extension-to-type mapping is inconsistent (.json, .md, custom exports). MIME Type Lookup answers 'what type should this file be?' when configuring S3, CDN, or Content-Type headers.
What is the difference between 404 and 410?
404: not found (maybe temporary). 410: gone - resource intentionally removed. Clients and caches treat them differently. HTTP Status Code Reference lists common codes.
Does a 200 response always mean success?
HTTP 200 means the server returned a response body for the request. Your API may still embed { "error": ... } inside JSON with 200 - check your API design. For true errors, prefer 4xx/5xx.
How do URL parser and user agent parser fit debugging?
URL Parser splits scheme, host, path, query - useful when logs truncate. User Agent Parser identifies browser/OS from UA strings in access logs.
Does ToolComb upload my URLs or log lines?
Lookup and parse run in the browser. Log excerpts may still contain tokens in query strings - redact before paste anywhere.
Related guides
More reading that links back to the same tools and workflows.
How to Read HTTP Headers When Debugging a Site
Cache, cookies, CORS, and security headers from a live response.
4 min read
Best Free Security and Encoding Tools
Decode JWTs, hash files, generate passwords, and strip metadata locally. Security utilities that keep tokens and passwords on your device.
6 min read
JWT Generate vs Decode - What Belongs in the Browser
Decode claims locally, generate test tokens with dummy keys - never mint production JWTs or paste live secrets into any website tab.
4 min read
Password Generator vs Password Manager: Random Strings Are Not Storage
A generator makes one strong secret. A manager remembers unique secrets per site. Why you still need both, and why an online generator that phones home is the wrong half.
7 min read