(body: unknown, fallback: string): string import {format_error_body} from '@fuzdev/fuz_app/ui/ui_fetch.js'; The text to show for an error body: its message when it carries one,
else its error code — a body's error is a machine-readable code, and
prose, when the server sends any, is in message.
body
the parsed error body, of any shape
unknownfallback
the text when the body has neither
stringreturns
string