easy
Single Answer
0How is a status code passed to the client after a REST-based request has been processed?
Answer Options
A
HTTP header
B
HTTP body
C
Script variable
D
Script data object
Correct Answer: A
Explanation
The status code is passed back to the client via the Hypertext Transfer Protocol (HTTP) header. Web-based browsers do not show HTTP headers, and this is why using a tool such as Postman is recommended. The HTTP body is where the returned data of the request can be found. Script variables are used internally by the script so that data can be loaded into the variable and passed to other procedures within the script. Script data objects are also used internally by the script to load and pass complex data structures called objects.
http
rest-api
status-codes
headers