pass error_status as a result to error callback