I don't think that we need to check for TEST_MODE - we can just do this:

```
throw HTTP_Exception::factory(404, 1);
```

and update the numbe rin each stanza.  If we're not in test mode, the code will be ignored anyway (right?)