DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1
imp
lem
ente
d

5
0
2

Bad
gate
way

The proxy or gateway indicates that it received a
bad response from the upstream server.

5
0
3

Serv
ice
una
vail
able

The server cannot respond due to overloading or
maintenance. The client can try again later.

5
0
4

Gat
ewa
y
tim
eout

The proxy or gateway indicates that it received a
timeout from an upstream server.

Now that we have looked at HTTP methods and return
codes, let’s look at the data that is sent or received during
a GET or POST. Let’s look at an example and see how the
same information is represented in the various data
types. For this example, refer to Figure 7-7. In this
example, you are making a GET request to the server at
myhouse.com to change the state of lights in the living
room to ON.


The data sent and received in a RESTful connection
requires structured data formatting. For the house
example, you now see a response from the server that
includes information about the house. Standard data
formats include XML, JSON, and YAML, which are
described in the following sections.


XML

Free download pdf