AI engineering glossary · Web APIs HTTP
What is response body?
Response body: The data a server sends back after the headers of a response, such as HTML for a page or JSON for an API. Clients parse it according to the Content-Type header, and error responses often put details in it.
Response body: an example
{"error": "invalid_api_key"} returned along with a 401 status is a response body describing the failure.
Related terms
More Web APIs HTTP terms
Where you learn it
Response body is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.