How to use APIs with JavaScript
Anatomy of a Response

The HTTP response structure mirrors that of the HTTP request. It contains:

  1. A response line, which includes the three-digit HTTP status code;

  2. A header, which includes further information about the server and its response;

  3. The body, which contains the text of the response.


Check out the code in the editor. See how its structure resembles the request layout? Click Save & Submit Code when you're ready to continue.