HTTP basics
Understand methods, paths, status codes and the request-response shape.
What you will be able to do
- Use GET for safe reads.
- Use POST for creation and non-idempotent actions.
- Return the correct status code.
- Keep URLs stable and meaningful.
In plain English
HTTP is a text protocol of request and response messages. Methods express intent: GET reads, POST creates, PUT replaces, PATCH updates and DELETE removes. Status codes summarise the outcome in classes: 2xx success, 3xx redirect, 4xx client error, 5xx server error.
GET /api/courses/css HTTP/1.1
Host: www.edubyte.tech
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: public, max-age=60Your turn
EasyChoose a status code
Which status code should a successful POST that creates a resource return?
HTTP · starter
status =Check your understanding before moving on.
Knowledge checkQuestion 1
Which class of status code means the client made a mistake?
Select an answer to continue
Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.