Simplify setHeaderStatus.