Edit & Run »
{{content}}
The $http service executes different functions on success and failure.