Adding http_response_code for php <5.4.0