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);
Last updated: June 02, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai