Adding support for last_status method
Adding support for previous_error method
Adding support for reset_error_history method
Adding support for error method