title: Angular2 - HTTP 200 treated as error
body: <p>I am trying to get Angular2 to work with my Asp.Net WebApi 2 server. I managed to handle some GET requests correctly, however this POST request behaves strangely. I receive an OK (200) response from my server, yet the following code treats it as an error:</p>
  
  <pre><code>public Register(){
      this.accountService.Register(this.Name, this.Password, this.RepeatPassword, this.Email, this.Skype, this.Website).subscribe(
          () =&gt; {      //this is what's supposed to be called, but isn't
              this.accountService.Login(this.Name, this.Password).subscribe(
                  res =&gt; {
                      console.log(res);
                      localStorage.setItem('token', res);
                      localStorage.setItem('user', this.Name);
                      this.router.navigate(['Home']);
                  },
                  error2 =&gt; {
                      console.log(error2.Message);
                  }
              );
          },
          error =&gt; { //the response gets here, instead of being handled above
              console.log(error.Message);
          }
      );
  }
  </code></pre>
  
  <p>Here is the Register method of the accountService:</p>
  
  <pre><code>public Register (userName:string, password:string, confirmPassword:string, email:string, skype:string, website:string)
  {
      return this.http.post(this.Uri + 'api/Account/Register', JSON.stringify(
          {
              UserName: userName,
              Password: password,
              ConfirmPassword: confirmPassword,
              Email: email,
              Skype: skype,
              Website: website
          }), this.GetRequestOptions() ).map((res: Response) =&gt; res.json());
  }
  </code></pre>