added a throwIt() error code handler to exception handler
Changed the no valid homepage to return a 404
throw proper exceptions