Which status code indicates a successful GET request?
A) 200 OK
B) 201 Created
C) 400 Bad Request
D) 500 Internal Server Error
Answer:
A) 200 OK
Explanation:
The status code 200 OK indicates a successful GET request in REST APIs. When a server returns this status code, it means that the request was processed successfully, and the requested resource or data is included in the response body.
200 OK is one of the most common status codes in RESTful APIs and is used to confirm that the client’s request has been fulfilled as expected.