Use header instead of http_status_code

http_status_code requires HTTP extension, which is not built-in