Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Responses are generally made up of three parts:

screenshot

 1) HTTP Status

The status includes standardized codes and messages for certain request outcomes. When working with web services you’ll commonly see:

  • 200 OK success message

  • 400 Client errors (e.g., 404 Not Found meaning the resource is missing or doesnt exist); or

  • 500 Server errors (e.g, 503 Service Unavailable) 

 2) Header

The header contains information about the response - this doesn’t actually contain the response itself. 

 3) Body

The body is the content of the response. It contains the information we want to use based on the request we made.

It can be information you need to use, for example, the access token or resource you requested from the server or an error description providing you specific details why the server could not process your particular request. 

  • No labels