code: public static <T extends Errors> T parseErrorResponse(ObjectMapper mapper, ResponseBody errorResponse, Class<T> cls) throws IOException {
          return mapper.readValue(errorResponse.bytes(), cls);
      }
docs: Parses provided ResponseBody and returns it as T.
  
  @param mapper        Jackson Object mapper instance
  @param errorResponse error response body
  @return T collection
  @throws IOException