Store the status and message in the exception for better handling