func getOperationResultDescription()

in http/server/otelaudit/otelaudit_helper.go [200:208]


func getOperationResultDescription(statusCode int, errorMsg string) string {
	if statusCode >= 400 {
		if errorMsg != "" {
			return fmt.Sprintf("operation failed with status code: %d, error: %s", statusCode, errorMsg)
		}
		return fmt.Sprintf("operation failed with status code: %d", statusCode)
	}
	return "succeeded to run the operation"
}