🌐HTTP Response
Also known as Response, Web Response
The message a server sends back. It has a code and the thing you asked for.
Think of it like
Think of it like the plate that comes back from the kitchen. A note on it says all went well.
Example
Why it matters
The response tells you if a request worked and why not. It is the first place to look when a page breaks.
Definition
Example code
http
HTTP/1.1 200 OK
Content-Type: text/html
<h1>Menu</h1>Common mistake
Key takeaways
- 1Status code first. Says what happened.
- 2Headers. File type, caching and more.
- 3Body. The content that was asked for.