Reading · 9 min

HTTP and REST

You are previewing a free lesson. Enrol to save progress and take quizzes.

HTTP requests have a method, a path, headers and sometimes a body. REST models things as resources: GET reads, POST creates, PUT or PATCH updates, DELETE removes.

Use status codes honestly: 200 success, 201 created, 400 bad input, 401 not signed in, 403 not allowed, 404 not found.