Apply caching headers and stack trace before HTTP response status

Higher level filters may trigger extra behavior immediately on
setStatus(int), which means the stack trace attribute needs to
be set before the call, not after.

Also give the higher level filters visiblity to the suggested
caching headers, by applying them before setStatus(int).

Change-Id: Ic1556aaf0177f2f5957df2ed1fbd2d8b12d7119e
1 file changed