# 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: October 15, 2026

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