@Override
    protected ClassicHttpResponse createMessage(final CharArrayBuffer buffer) throws IOException {
        try {
            return super.createMessage(buffer);
        } catch (final HttpException ex) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Garbage in response: {}", buffer);
            }
            return null;
        }
    }
Creates new instance of DefaultHttpResponseParser.

@param h1Config        HTTP/1.1 parameters. If {@code null}. {@link Http1Config#DEFAULT} will be used.

@since 4.3
httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/LenientHttpResponseParser.java