attemptedAction = $action; } public function execute() { header("HTTP/1.0 404 Not Found"); return array("error" => "API action '".$this->attemptedAction."' not found."); } }