Status header is sent last

Status header is sent last to prevent header() from overwriting the ZF
status code when a Location header is used