Added the status class for error handling