$http error respond

by Serhioromano

HTML

<div ng-app="MyApp" ng-controller="MyCtrl">
    {{ status }}
</div>

JavaScript

var app = angular.module('MyApp', [])
    .controller('MyCtrl', function(){
        this.status = 0;
    });