Adding error_code