Skip to main content

write_error_envelope

Function write_error_envelope 

Source
pub fn write_error_envelope(
    status: u16,
    status_text: &str,
    error_type: &str,
    error_code: &str,
    message: &str,
    actor_scope: Option<&str>,
    tenant_scope: Option<&str>,
) -> String
Expand description

Produces a bounded JSON error envelope for direct HTTP handling.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::dynamic::write_error_envelope.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::write_error_envelope(400, "400 Bad Request", todo!(), todo!(), "example", todo!(), todo!());