$PROJECT_PATH = "/var/www/html/project/expenses"; include_once("$PROJECT_PATH/php/include.php"); http_response_code(500); // default to this for all requests, then call requestOk() or requestFail() ?>