
Lesson 02 · 10 min
Methods and status codes
GET reads, POST creates. 2xx is fine, 4xx is the client's fault, 5xx is the server's.
The method says what the client wants to do with a resource. GET reads, POST creates, PUT replaces entirely, PATCH changes a part, DELETE removes. The status code says how it went. The first digit matters more than the rest.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.