API response check without separate WEB Service Request

Hi all,
I started to learn katalon last week, and I’d like to know if there is a way to check an api response code during the test. What I mean is, for example I’m getting data from an endpoint during testing, and I want to check if I received the data successfully by checking the response code, is there a way to do this? Thanks for the help!

@dgonda You can use WS.verifyResponseStatusCode(). You can read more about it from [WS] Verify Response Status Code | Katalon Docs if this is what you are looking for.

@chen.lee If I understand correctly, for this I need to send a request in katalon itself before I can get the response. I would like to extract the response from the call that happened on the webpage itself if possible.

Yes, you would need to send a request in katalon before you get a response