

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: HTTP Methods - GET
incomplete
2: Why Use HTTP Methods?
incomplete
3: POST Requests
incomplete
4: Status Codes
incomplete
5: Status Code Property
incomplete
6: PUT
incomplete
7: PATCH vs. PUT
incomplete
8: Delete
incomplete
This lesson's interactive features are locked, please to keep using them
The response object from pyfetch has a .status property that contains the status code of the response.
Update the get_user_code function to return the status code of the response.
You get a 404 response when requesting a user for an ID that doesn't exist!
The .ok property of a response indicates whether a response was successful (in the range of 200 - 299) or not.