     slug = @props.params.owner + '/' + @props.params.name
 
     <div className="project-page-wrapper">
-      {if @state.loading
-        <div>
-          <p>
-            Loading{' '}
-            <strong>{slug}</strong>...
-          </p>
-        </div>}
-
-      {if @state.error?
-        <div>
-          <p>
-            There was an error retrieving project{' '}
-            <strong>{slug}</strong>.
-          </p>
-          <p>
-            <code>{@state.error.stack}</code>
-          </p>
-        </div>}
-
       {if @state.project? and @state.owner?
         <ProjectPage
           {...@props}
           project={@state.project}
           owner={@state.owner}
           preferences={@state.preferences}
+          loading={@state.loading}
           onChangePreferences={@handlePreferencesChange}
-        />}
+        />
+
+      else if @state.loading
+        <div className="content-container">
+          <p>
+            Loading{' '}
+            <strong>{slug}</strong>...
+          </p>
+        </div>
+
+      else if @state.error?
+        if @state.error.message is 'NOT_FOUND'
+          <div className="content-container">
+            <p>Project <code>{slug}</code> not found.</p>
+            <p>If you're sure the URL is correct, you might not have permission to view this project.</p>
+          </div>
+        else
+          <div className="content-container">
+            <p>
+              There was an error retrieving project{' '}
+              <strong>{slug}</strong>.
+            </p>
+            <p>
+              <code>{@state.error.toString()}</code>
+            </p>
+          </div>}
     </div>
 
 module.exports = ProjectPageController

    project: null
    owner: null
    preferences: null

  getInitialState: ->
    background: null

          <IndexLink to="#{projectPath}" activeClassName="active" className="tabbed-content-tab" onClick={logClick?.bind this, 'project.nav.home'}>
            {if @state.avatar?
              <img src={@state.avatar.src} className="avatar" />}
            {if @props.loading
              'Loading...'
            else
              @props.project.display_name}
          </IndexLink>}

        {unless @props.project.redirect
