Skip to main content

How to validate status code that is returned in response header

If we want to validate the status code that is returned in the response header we can use the below approach.


var $response = post($url, $payload );
assertEquals($response.status, 200)200);




Last updated: JuneOctober 02,15, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai