http-response-code php backwards compatibility function
fix bad rest.php return code