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 http.Response struct has a .StatusCode property that contains the status code of the response.

Assignment

Update the getUserCode function to return the status code of the response.

You should get a 404 response when requesting a user that doesn't exist!