Skip to main content

write_json_error

Function write_json_error 

Source
pub fn write_json_error(status: u16, error_type: &str, message: &str) -> String
Expand description

Renders a bounded JSON error HTTP response without interpolating unescaped data.

§Parameters

§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");