Added a test for the exception's status code. Not perfect as it doesn't test the header is sent, but still good. Fixes #1