1
00:00:00,750 --> 00:00:03,510
Instructor: Okay, so that conclude our discussion

2
00:00:03,510 --> 00:00:04,980
about status codes.

3
00:00:04,980 --> 00:00:08,130
So let's summarize what we have talked about.

4
00:00:08,130 --> 00:00:12,030
First, always return the appropriate status code.

5
00:00:12,030 --> 00:00:16,260
Always be aware that the default one is the 200

6
00:00:16,260 --> 00:00:20,010
and you should not return it in any case.

7
00:00:20,010 --> 00:00:23,040
Also remember that not all clients are familiar

8
00:00:23,040 --> 00:00:25,590
with all codes, so therefore you should stick

9
00:00:25,590 --> 00:00:29,760
to the most popular one and the ones that you can assume

10
00:00:29,760 --> 00:00:31,950
the client will be familiar with.

11
00:00:31,950 --> 00:00:36,950
For example, the 200, 201, 204, 400, 404

12
00:00:39,533 --> 00:00:42,150
and 500 are usually well known

13
00:00:42,150 --> 00:00:46,050
and you can assume the client knows the status code

14
00:00:46,050 --> 00:00:47,313
and is ready for them.

15
00:00:48,480 --> 00:00:50,010
Now, make sure to take a look

16
00:00:50,010 --> 00:00:52,380
at the resource section of this lecture.

17
00:00:52,380 --> 00:00:56,130
There is a document there summarizing all the status code

18
00:00:56,130 --> 00:01:00,150
we discussed with the role and also a table showing

19
00:01:00,150 --> 00:01:03,510
what status codes are relevant for each verb.

20
00:01:03,510 --> 00:01:05,940
I use this table when designing the architecture

21
00:01:05,940 --> 00:01:07,410
of systems I'm working on

22
00:01:07,410 --> 00:01:09,460
and I'm sure you will find it useful too.

