Yeah we can just use a dummy state for now. Feel free to change that in the "New Project" section and then I can update my code as well.

Do you still want/plan to keep your HTTP header error output if we use the response object?

I think it would be helpful if your getProjectState.php file just had a function that returned the state and didn't take the actual request. Then I could call that as part of loadProject.php so neither file is too cluttered. Is there any other time we'd want to retrieve the state?