Add X_ERROR_FUNCTION_FAILED