using http_response_code() from php 5.4