this.http.put(url, data)
.map(response => response.json())
.subscribe(
response => console.log(response),
error => console.log(error),
);
On success it outputs the data returned from the API. On error the output is ProgressEvent with status of 0.