pub fn err_to_status_code(err: &ServerError) -> u16
Converts a server error into an HTTP status code.