When viewing an XPage I see the error page 500 HTTP Web Server: Command Not Handled Exception. This error is not much use when developing. This is how to put a nice useful error message.
Go to Database Design Elements view.
Double Click on Applciation Properties.
Click onthe XPages Tab.
Tick the field "Display XPages runtime error page"
Click the Disk save icon, and try reloading the page.