Adding method to get HTTP status code of an exception

Adding a method for getting the HTTP status code for a specified exception