HTTP
Updated 2026-07-30
Summary
HTTP (Hypertext Transfer Protocol) is an application layer protocol in the Internet protocol suite for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that…
Definition
Standardized codes for server response status in the HTTP protocol: five categories of status codes: - 1xx (Informational): Request received, continuing process - 2xx (Success): Request successfully processed (e.g., 200 OK) - 3xx (Redirection): Further action needed (e.g., 301 Moved Permanently) - 4xx (Client Error): Request has errors (e.g., 404 Not Found) - 5xx (Server Error): Server failed to process (e.g., 500 Internal Server Error) Scaffolding role: Standardized communication, rapid diagnosis. HTTP status codes provide a unified error reporting language for web communication, helping developers quickly locate and diagnose the source of problems.
Introduction
How to use
Standardized communication, rapid diagnosis. HTTP status codes provide a unified error reporting language for web communication, helping developers quickly locate and diagnose the source of problems.
Mechanism
Standardized response status encoding in the HTTP protocol. The mechanism uses the first digit to classify and quickly locate the nature of the problem: 1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error. It is a **unified diagnostic language** for web communication.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- When frontend reports an error, seeing 401 indicates unauthorized (authentication issue), seeing 503 indicates service unavailable, and the direction is immediately distinguished.
Common pitfalls
- - Using 200 to wrap business errors (should distinguish between HTTP and business codes); - Returning 500 to mask specific errors; - Abusing 3xx causing redirect loops.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/HTTPverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS