200-901 Understanding and Using APIs Practice Question
A developer is writing a Python script that calls the Cisco Webex Teams API to create a new space. The API returns the new space object, including a Location header pointing to the newly created resource. Which HTTP status code should the developer expect from a successful space creation?
⚠ Common exam trap
Candidates often confuse 201 Created with 200 OK, assuming any successful response must be 200.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
201 Created
The correct status code for a successful resource creation via POST in the Webex API is 201 Created. This status indicates that the request has been fulfilled and has resulted in one or more new resources being created. The response typically includes a Location header with the URI of the new resource and a body containing the representation of the created space. Understanding this helps developers correctly handle API responses and extract necessary identifiers.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
204 No Content
Why it's wrong here
204 No Content indicates a successful request that returns no body. This is common for DELETE or sometimes PUT/PATCH. However, a POST that creates a space returns the new space object in the body, so 204 would be incorrect. The developer needs the response body to obtain the space ID and other details; therefore, 204 is not the expected status for this operation.
- ✗
200 OK
Why it's wrong here
200 OK indicates that the request succeeded and the response body contains the result. However, for a resource-creating POST, the Webex API returns 201 Created, not 200. A 200 response is typical for a successful GET or PUT, where no new resource is created. Using 200 here would mislead the script into thinking no new resource identifier is available in the Location header.
- ✓
201 Created
Why this is correct
201 Created is the correct status for a POST that successfully creates a new resource. The Webex API returns 201 along with the new space object and a Location header containing the URI of the created space. The developer can use this Location header to subsequently retrieve or modify the space. This status confirms that the resource was created and provides its canonical URL.
- ✗
202 Accepted
Why it's wrong here
202 Accepted means the request has been accepted for processing but the processing is not complete. This is used for asynchronous operations, not for immediate resource creation. The Webex API creates the space synchronously and returns 201, not 202. Relying on 202 would cause the script to incorrectly assume the space is not yet available, leading to unnecessary polling or errors.
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 975-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Cisco exam blueprint
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.