Angular 2 - Checking for server errors from subscribe : <p>I feel like this scenario should be in the Angular 2 docs, but I can't find it anywhere. </p>

<p>Here's the scenario</p>

<ol>
<li>submit a form (create object) that is invalid on the server</li>
<li>server returns a 400 bad request with errors I display on the form</li>
<li>after the subscribe comes back, I want to check an error variable or something (ie. if no errors > then route to newly created detail page)</li>
</ol>

<p>I imagine it working something like this:</p>

<pre><code>this.projectService.create(project)
    .subscribe(
        result =&gt; console.log(result),
        error =&gt; {
            this.errors = error
        }
    ); 
}

if (!this.errors) {
    //route to new page
}
</code></pre>

<p>I'm very new to Angular 2 so this may come from my lack of understanding in how an Observable works. I have no issue with displaying that data on the form, but can't figure out how to see it within the ts component. I really just want to check the success/fail of the http create.</p>
