Added a flush to the OutputStream passed to StreamingCodec
Tweaks to the HTTP response code.