Improved status header handling.