Response Structure Flashcards
Response Structure:
After processing an API call, the server returns a response to the client. The response structure includes:
Status Code: A three-digit HTTP status code indicating the success or failure of the request
Headers: Additional information about the response.
Body: Data sent by the server, containing the requested information or confirmation of the action performed.
Status Code:
A three-digit HTTP status code indicating the success or failure of the request (e.g., 200 OK, 404 Not Found, 500 Internal Server Error).
Headers:
Additional information about the response.
Body:
Data sent by the server, usually in JSON or XML format, containing the requested information or confirmation of the action performed.