200-901 · Question #434
When a developer sends an HTTP request to an API, which two elements are expected in an HTTP response? (Choose two.)
The correct answer is A. headers E. status code. When a developer sends an HTTP request to an API, the HTTP response typically includes two Headers: Headers provide metadata about the response or the server. They include information such as content type, content length, server type, and other relevant details. Headers help…
Question
When a developer sends an HTTP request to an API, which two elements are expected in an HTTP response? (Choose two.)
Options
- Aheaders
- BGET request
- CPOST request
- Dscripts
- Estatus code
How the community answered
(28 responses)- A89% (25)
- B7% (2)
- C4% (1)
Explanation
When a developer sends an HTTP request to an API, the HTTP response typically includes two Headers: Headers provide metadata about the response or the server. They include information such as content type, content length, server type, and other relevant details. Headers help the client understand how to interpret the response. Status Code: The status code is a three-digit numeric code that indicates the outcome of the HTTP request. It informs the client about whether the request was successful, encountered an error, or requires further action. Common status codes include 200 for a successful request, 404 for not found, 500 for internal server error, etc.
Topics
Community Discussion
No community discussion yet for this question.