HTTP Status Codes & URL
Let's learn HTTP status codes and practice how to address resources with a URL.
We'll cover the following
The HTTP status codes belong to different families, depending on their first digit.
Family | Meaning | Examples |
---|---|---|
1xx | Information | |
2xx | Success | 200: request handled successfully |
3xx | Redirection | |
4xx | Client Error | 404: resource not found |
5xx | Server Error | 500: internal server error |
For a more in-depth presentation of the HTTP protocol, head over to the Mozilla Developer Network.
Addressing a resource with a URL
Web sites are usually accessed using their address, a piece of text of the form http://www.mywebsite.com/myresourcepath/myresource
. This address can be split into several subparts
http://
means an access through the HTTP protocol.www.mywebsite.com
is the domain name of the web site./myresourcepath/myresource
is the path of the requested resource.
An address like this one is called a URL, or Uniform Resource Locator. A URL uniquely describes a web resource and the way to request it.
Get hands-on with 1400+ tech skills courses.