Skip to main content

format_utf8_error

Function format_utf8_error 

Source
pub fn format_utf8_error() -> Value
Expand description

Build a JSON error body for invalid UTF-8 payloads.

Returns { "error": "Invalid UTF-8" }.

Internally constructs an ErrorBody and serializes it.