Commit fe126981 authored by Leonardo Menezes's avatar Leonardo Menezes
Browse files

consider all 2xx status codes as success

parent 795df314
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2534,7 +2534,7 @@ angular.module('cerebro').factory('DataService', ['$rootScope', '$timeout',
        if (data.status === 303) {
          $window.location.href = '/login';
        } else {
          if (data.status === 200) {
          if (data.status >= 200 && data.status < 300) {
            success(data.body);
          } else {
            error(data.body);
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ angular.module('cerebro').factory('DataService', ['$rootScope', '$timeout',
        if (data.status === 303) {
          $window.location.href = '/login';
        } else {
          if (data.status === 200) {
          if (data.status >= 200 && data.status < 300) {
            success(data.body);
          } else {
            error(data.body);