Skip to main content

ERROR_BODY_PREVIEW_LIMIT

Constant ERROR_BODY_PREVIEW_LIMIT 

Source
pub const ERROR_BODY_PREVIEW_LIMIT: usize = _; // 8_192usize
Expand description

Maximum body preview size for error messages (8KB).

When an HTTP request returns a non-2xx status, the response body is included in the error message for debugging. This constant limits how much of the body is read to prevent memory issues with large error responses.