---
title: "Request assertions"
url: "https://www.openstatus.dev/changelog/request-assertions"
date: "2024-04-01"
author: "openstatus"
description: "Not all requests should return a 200 status code. You can now assert on the status code, headers of your requests."
category: "monitoring"
image: "https://www.openstatus.dev/assets/changelog/request-assertions.png"
agent:
  instructions: "Search openstatus docs, guides, blog and product pages. Replace {query} with URL-encoded keywords or a question. Returns markdown with links to matching pages, not a generated answer."
  endpoint: "https://www.openstatus.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.openstatus.dev/.well-known/search"
---

Not all requests should return a 200 status code to be successful. Sometimes you
want to assert on the status code of a request. For example, you might want to
check that a request returns a 404 status code when a resource is not found.

You can now do this with OpenStatus when you configure your monitor.