pub fn format_generic_error(error: &str) -> Value
Build a generic JSON error body with a custom error string.
Returns { "error": "<error>" }.
{ "error": "<error>" }
Internally constructs an ErrorBody and serializes it.
ErrorBody