pub(crate) fn check_api_key(headers: &HeaderMap) -> Result<()>
Check if the API Key is correctly set. Returns an error if it is not.