pub fn http_status_to_error( status: StatusCode, exchange: &str, body: Option<&str>, ) -> EMSError
Helper function to convert HTTP status codes to EMSError
EMSError