0 votes
in Technology by (438k points)

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

1 Answer

0 votes
by (438k 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.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
...