in formstack-baton-requests/src/main/scala/com/gu/identity/formstackbatonrequests/services/FormstackService.scala [109:117]
def isSkippableError(response: HttpResponse[String] ) : Boolean = !response.is2xx && skippableErrorMessages.exists(response.body.contains)
def decodeIfNotSkippableError[T: Decoder](response: HttpResponse[String]): Either[Throwable, Option[T]] = decode[T](response.body) match {
case Left(_) if isSkippableError(response) =>
logger.info(s"skipping response with status: ${response.statusLine}")
Right(None)
case Left(e) => Left(e)
case Right(submission) => Right(Some(submission))
}