Added status code to exception message