pub fn write_json_error(status: u16, error_type: &str, message: &str) -> StringExpand description
Renders a bounded JSON error HTTP response without interpolating unescaped data.
§Parameters
status: Input consumed bycrate::runtime::dynamic::write_json_error.error_type: Input consumed bycrate::runtime::dynamic::write_json_error.message: Input consumed bycrate::runtime::dynamic::write_json_error.
§Returns
Returns the computed value produced by crate::runtime::dynamic::write_json_error.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::write_json_error(400, todo!(), "example");§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.