content_safety_error_body: Parse Content Safety Error Response

View source: R/moderate.R

content_safety_error_bodyR Documentation

Parse Content Safety Error Response

Description

Internal function to extract user-friendly error messages from Content Safety API responses.

Usage

content_safety_error_body(resp)

Arguments

resp

An httr2 response object.

Value

Character string with error message.


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.