medium
Single Answer
0

You have received a return status code of 201 from an SDN controller after executing an API request via REST. Which CRUD action have you executed, judging by the status code?

Answer Options

A

POST

B

GET

C

PATCH

D

DELETE

Correct Answer: A

Explanation

A status code of 201 means that the item has been created; normally only a POST command can create a data item. A GET Hypertext Transfer Protocol (HTTP) verb will read an item and return a 200 status code. A PATCH HTTP verb will update an existing item and return a 200 status code. A DELETE HTTP verb will delete an item and return a 200 status code.

rest-api
http-status-codes
crud
sdn