Is there some way to inspect status code of request after calling ServeHTTP?

When writing a middleware plugin is there some way to inspect status code of request after calling ServeHTTP?

The only way I can find is to scan the access log or am I missing something?