Closeable
Flushable
AutoCloseable
HttpMessage
HttpOutputMessage
ServerHttpResponse
HttpServletResponse
servletResponse
setStatusCode
status
getHeaders
null
getBody
IOException
After the first flush, headers can no longer be changed. Only further content writing and content flushing is possible.
flush
close