Add tests for exception handling

As a result of adding tests add better defaults for the response status and error message.