api: http_response_code only PHP 5 >= 5.4.0