code: public static List<HttpCode> getClientOrServerErrors(List<HttpCode> httpCodes) {
          return httpCodes.stream()
                  .filter(x -> x.isClientOrServerError())
                  .collect(Collectors.toList());
      }
docs: Method returns only client or sever http errors.
  
  @param httpCodes list of http codes
  @return Http client and server errors