@Override
    public void after(Object target, Object[] args, Object result, Throwable throwable) {
        if (isDebug) {
            logger.afterInterceptor(target, target.getClass().getName(), "", "internal", args);
        }

        if (!needGetStatusCode()) {
            return;
        }

        if (result instanceof HttpResponse) {
            final HttpResponse response = (HttpResponse) result;
            if (response.getStatusLine() != null) {
                HttpCallContext context = new HttpCallContext();
                final StatusLine statusLine = response.getStatusLine();
                if (statusLine != null) {
                    context.setStatusCode(statusLine.getStatusCode());
                    final InterceptorScopeInvocation transaction = interceptorScope.getCurrentInvocation();
                    final Object attachment = getAttachment(transaction);
                    if (attachment == null) {
                        transaction.setAttachment(context);
                    }
                }
            }
        }
    }
Trace status code.

@author minwoo.jung
@author jaehong.kim
agent-module/plugins/httpclient4/src/main/java/com/navercorp/pinpoint/plugin/httpclient4/interceptor/HttpClientExecuteMethodInternalInterceptor.java