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>,
) -> StringExpand description
Produces a bounded JSON error envelope for direct HTTP handling.
§Parameters
status: Input consumed bycrate::runtime::dynamic::write_error_envelope.status_text: Input consumed bycrate::runtime::dynamic::write_error_envelope.error_type: Input consumed bycrate::runtime::dynamic::write_error_envelope.error_code: Input consumed bycrate::runtime::dynamic::write_error_envelope.message: Input consumed bycrate::runtime::dynamic::write_error_envelope.actor_scope: Input consumed bycrate::runtime::dynamic::write_error_envelope.tenant_scope: Input consumed bycrate::runtime::dynamic::write_error_envelope.
§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!());§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.