Mainly, for API testing, we need to check response code, a response message, and response body.
Below are the various response code, one might encounter while API testing.