Skip to navigation

Function http_error_message

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub fn http_error_message(status: u16, message: &str) -> Result<String, String>

Formats an upstream HTTP error for transport through string-based plugin callbacks.

Relay recognizes this HTTP prefix at runtime plugin error boundaries. Status codes must be in 400..=599. Older hosts continue to treat the result as an ordinary error string.