I am trying to read 403 status code(expected) in error call back but I see the following as response object.
Object {data: null, status: -1, config: Object, statusText: "", headers: function}
The preflight OPTIONS request is getting denied with 403. request How can I get the status code '403' and statustext 'Forbidden' in errorcallback?
fileUpload(url,formdata){
this.$http({
method: 'POST',
url: url,
transformRequest: angular.identity,
headers: {'Content-Type': undefined}
}).then(function successCallback(response) {
}, function errorCallback(response) {
console.log(response);
});