@Override
				public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
					Object msg = e.getMessage();
					if (msg instanceof HttpResponse
							&& ((HttpResponse) e.getMessage()).getStatus().equals(REQUEST_ENTITY_TOO_LARGE)) {
						ctx.sendDownstream(e);
					}
					else {
						super.writeRequested(ctx, e);
					}
				}
Set the max content length; default 1Mb.
@param maxContentLength the max content length.
extensions/spring-xd-extension-http/src/main/java/org/springframework/integration/x/http/NettyHttpInboundChannelAdapter.java