Skip to main content

fs_error_response

Function fs_error_response 

Source
pub fn fs_error_response(error: FsError) -> Response
Expand description

Map a jail refusal onto HTTP.

Escapes is 403 rather than 404 deliberately, and identically whether or not the target exists: a split between the two would tell a caller what lives outside the root.