My web application is built using AngularJS, JS, JQ, HTML5, and CSS3. It interacts with our projects' REST API by sending various HTTP methods and manipulating the data received. The functionality is similar to what can be achieved with DHC by Restlet (formerly Dev HTTP Client). Each request made results in a status code such as 200, 201, 404, or 500, which is then shown to the user.
I am looking to enhance the user experience by not only displaying the response code but also providing a description alongside it:
404 Not Found
, 201 Created
, etc.
Currently, I am handling responses in AngularJS like this:
$http(config).success(function (data, status, headers, config) {//some logic}
Is there a way to achieve this using AngularJS?