First, the key terms.
- Client
- The program making a request, such as a browser.
- Response
- The status, headers and possible body returned by the server.
- Resource
- Something requested by a URL, such as HTML, an image or data.
The idea, explained
A request identifies a method and target. A response communicates an outcome, but the client still needs to interpret the returned data. Caches and proxies can sit between the browser and the origin. A page may require multiple requests for its document, styles, code and data.
Locate the service
The browser interprets the URL and normally uses DNS to find an address. A successful lookup only tells it where to try connecting. The target machine and application must still be available.
Establish a secure connection
For HTTPS, connection setup includes checking the server’s certificate under the browser’s trust rules. Encryption protects data in transit; it does not guarantee that the website’s statements are true or that its application has no bugs.
Request, render and continue
The server returns an HTTP response. HTML can reference additional CSS, JavaScript, images and data requests. A 200 response for the initial page does not prove that all those later resources loaded or that interactive controls work.
Follow a worked example.
Opening a news page can request its HTML first and then its styles and data. A successful document response does not guarantee that a later subscription request succeeds. The interface needs to show the result of that specific action.
Walk it through, one step at a time
- A visitor requests /learn. The server returns 200 with the page document.
- The browser requests the stylesheet and a script. If the script fails, the document may still look correct while interactive filtering fails.
- Compare a direct page link with script-driven navigation when diagnosing the problem; they exercise different parts of the application.
Where people get stuck
A 200 response means an HTTP request succeeded under the endpoint’s contract; it is not proof that every action on the page succeeded.
Now try it yourself.
1. Check the core idea
Why can a page appear while a button still fails?
Reveal the answer & reasoning
The button may call a different endpoint, with its own permissions, validation and failure conditions.
2. Apply what you learned
A page loads its title but its buttons do nothing. Does that prove DNS is broken?
Reveal the answer & reasoning
No. DNS and initial delivery may already have succeeded. The problem may be in script loading, application logic or an API called by the button.