Loading Depth Study
Preparing your workspace
HTTP status codes communicate the result or state of an HTTP request.
Status codes are grouped into categories. 2xx generally indicates success, 3xx indicates redirection, 4xx indicates a client-side issue such as invalid input or missing authentication, and 5xx indicates a server-side problem. Developers should choose status codes that accurately describe the result so clients can handle responses consistently.
A successful course request might return 200, creating a course might return 201, invalid input might return 400, and a missing resource might return 404.
200 OK 201 Created 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 500 Internal Server Error
The client can interpret the request result from the returned status code.