Instructor: Now when discussing response code
it's important to note they are divided into groups
and there are actually five groups of response codes
and each group represent a specific response type.
So there is a group for success response codes
and there is a group for error response codes, et cetera.
Now each group consists of three digit status codes.
So all the status codes
that we are dealing with are always consist of three digits
and each group has its own first digit.
So you will see groups that start
with one, with two, et cetera.
So let's discuss the various groups of response code.
So the first group is the group that starts
with one and all the status code that starts
with one represent informational response.
The next group is the group that starts with two
and all status code that starts with two represent success.
The next one is three, represent redirection.
Next come the fours that represent client errors.
And the last one are the fives
that represent server errors.
Now the first one, the informational response,
you should not use it.
It is there only
for informational purpose and no one is using it.
So you should also avoid this group.
In addition, the three group,
the redirection is usually implemented
by low level components such as whip server,
operating systems and so on.
You will rarely use this group in your API code.
So for our discussion
we will simply ignore those two groups
and we will discuss those three,
the success, client errors, and server errors.
So let's begin with the success.