{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/restful.js/issues/24","labels_url":"https://api.github.com/repos/marmelab/restful.js/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/restful.js/issues/24/comments","events_url":"https://api.github.com/repos/marmelab/restful.js/issues/24/events","html_url":"https://github.com/marmelab/restful.js/issues/24","id":73053836,"number":24,"title":"Is there a top level Error Handler","user":{"login":"raygerami","id":7294352,"avatar_url":"https://avatars.githubusercontent.com/u/7294352?v=3","gravatar_id":"","url":"https://api.github.com/users/raygerami","html_url":"https://github.com/raygerami","followers_url":"https://api.github.com/users/raygerami/followers","following_url":"https://api.github.com/users/raygerami/following{/other_user}","gists_url":"https://api.github.com/users/raygerami/gists{/gist_id}","starred_url":"https://api.github.com/users/raygerami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raygerami/subscriptions","organizations_url":"https://api.github.com/users/raygerami/orgs","repos_url":"https://api.github.com/users/raygerami/repos","events_url":"https://api.github.com/users/raygerami/events{/privacy}","received_events_url":"https://api.github.com/users/raygerami/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marmelab/restful.js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-04T15:36:59Z","updated_at":"2015-09-25T15:20:40Z","closed_at":"2015-09-25T15:20:40Z","body":"Hi, \r\nI would like to capture and handle any 401 errors received from server using resfuljs in a sort of global way.\r\nI know we can call the api and use .capture of the promise to capture individual calls errors, but  I thought may be there is a way to do this in a central manner, instead of having the same error check cone in all api calls.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/marmelab/restful.js/issues/comments/143250580","html_url":"https://github.com/marmelab/restful.js/issues/24#issuecomment-143250580","issue_url":"https://api.github.com/repos/marmelab/restful.js/issues/24","id":143250580,"user":{"login":"RobinBressan","id":4641116,"avatar_url":"https://avatars.githubusercontent.com/u/4641116?v=3","gravatar_id":"","url":"https://api.github.com/users/RobinBressan","html_url":"https://github.com/RobinBressan","followers_url":"https://api.github.com/users/RobinBressan/followers","following_url":"https://api.github.com/users/RobinBressan/following{/other_user}","gists_url":"https://api.github.com/users/RobinBressan/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinBressan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinBressan/subscriptions","organizations_url":"https://api.github.com/users/RobinBressan/orgs","repos_url":"https://api.github.com/users/RobinBressan/repos","events_url":"https://api.github.com/users/RobinBressan/events{/privacy}","received_events_url":"https://api.github.com/users/RobinBressan/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T15:20:40Z","updated_at":"2015-09-25T15:20:40Z","body":"@raygerami #50 will bring error interceptors and events and it should fix your issue."}}