Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 484

Which HTTP response code is returned from a successful REST API call to create a new resource?

Answer options

Correct answer: A

Explanation

The correct answer is 201, as this code signifies that a new resource has been successfully created. Option 204 indicates a successful request but with no content to return, while 302 is for redirection, and 429 represents too many requests, which are not valid for resource creation.