Skip to main content

format_payload_too_large

Function format_payload_too_large 

Source
pub fn format_payload_too_large() -> Value
Expand description

Build a JSON error body for payloads that exceed the size limit.

Returns { "error": "Payload too large" }.

Internally constructs an ErrorBody and serializes it.