We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Status Code Property

The Response has a .status property that contains the status code of the response.

Assignment

Update the getUserCode 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!