exam questions

Exam 200-301 All Questions

View all questions & answers for the 200-301 exam

Exam 200-301 topic 1 question 785 discussion

Actual exam question from Cisco's 200-301
Question #: 785
Topic #: 1
[All 200-301 Questions]

Which HTTP status code is returned after a successful REST API request?

  • A. 200
  • B. 301
  • C. 404
  • D. 500
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Phonon
Highly Voted 1 year, 10 months ago
Selected Answer: A
A. 200 In HTTP (Hypertext Transfer Protocol), status codes are used to indicate the outcome of a request. When a client (such as a web browser) makes a request to a server (such as a web server), the server responds with a status code and a message. A successful REST API request typically returns a status code of 200 (OK). This indicates that the request was successful and that the server was able to process it and provide a response. Here are some other common HTTP status codes: 301 (Moved Permanently): This status code indicates that the requested resource has been permanently moved to a new location. 404 (Not Found): This status code indicates that the requested resource could not be found. 500 (Internal Server Error): This status code indicates that an error occurred on the server while processing the request. In summary, the HTTP status code returned after a successful REST API request is 200 (OK). https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
upvoted 10 times
...
[Removed]
Most Recent 7 months, 3 weeks ago
Selected Answer: A
A is correct
upvoted 1 times
...
berpiy1028
1 year, 2 months ago
Successful for YA two finger
upvoted 1 times
...
4aynick
1 year, 5 months ago
Client Error - 4xx The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. Server Error - 5xx Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition.
upvoted 1 times
...
4aynick
1 year, 5 months ago
Informational - 1xx This class of status code indicates a provisional response. There are no 1xx status codes used in REST framework by default. Successful - 2xx This class of status code indicates that the client's request was successfully received, understood, and accepted. Redirection - 3xx This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...