public static List < HttpCode > getClientOrServerErrors ( List < HttpCode > httpCodes ) { return httpCodes . stream ( ) . filter ( x -> x . isClientOrServerError ( ) ) . collect ( Collectors . toList ( ) ) ; }
Method returns only client or sever http errors .