You can try doing this. I made the guide based on Error Handling | Throw, but this is much simpler. You can add a router after the module you want to check, or throw an error.
Create these routes:
Route 1: Create a filter like status is equal to 200, then connect it with the rest of your modules.
Route: 2: Create a filter like status is not equal to 200 or any error code you want. Add an Email or Slack module to send you a notification. Add a Break module right after it.
This is the simplest way of doing what you’re trying to achieve. I hope this helps you!
Since you cannot use error handlers as standard modules, you won’t be able to add them for the router.
However, to stop the scenario from processing, you can create an error yourself.
For example, using an HTTP module with an invalid URL