in src/main/scala/com/gu/contentapi/mostviewedvideo/OphanStore.scala [23:31]
private[this] def requestMostViewed(url: String, edition: Option[String], config: Config): Either[CustomError, String] = {
val request = new Request.Builder().url(url).build
val response = httpClient.newCall(request).execute
if (response.isSuccessful())
Right(response.body.string)
else
Left(CustomError(s"Failed to send request to Ophan for $url, response was ${response.code}"))
}