pub fn detect_response_errors(response_text: &str) -> Result<(), APIError>
Filter out response errors from the API