long originalLength = HttpHeaders.getContentLength(response);
int payloadLength = Integer.valueOf(getHeader(response));
String responseEnrichment = content.toString(0, payloadLength, Charset.defaultCharset());
content.readerIndex(payloadLength);
content.discardReadBytes();
HttpHeaders.setContentLength(response, originalLength - payloadLength);
ResponsePayload payload = SerializationUtils.deserializeFromBase64(responseEnrichment);
response.setStatus(HttpResponseStatus.valueOf(payload.getStatus()));