in Technology by (1.9m points)

What are the core components of a HTTP response in RESTful?

1 Answer

0 votes
by (1.9m points)
A HTTP Response has four major parts −

Status/Response Code − Indicate Server status for the requested resource. For example 404 means resource not found and 200 means response is ok.

HTTP Version − Indicate HTTP version, for example HTTP v1.1 .

Response Header − Contains metadata for the HTTP Response message as key-value pairs. For example, content length, content type, response date, server type etc.

Response Body − Response message content or Resource representation.