                     // print(response.result.value)
 
                     let uuidEntry = response.request?.allHTTPHeaderFields!["uuid"]
-                    if response.result.isSuccess {
+                    let status = response.response?.statusCode
+                    if status == 200 {
                         BreinRequestManager.sharedInstance.removeEntry(uuidEntry!)
                     } else {
                         print("could not send request with uuid: \(uuidEntry)")

                    // print(response.result)   // result of response serialization
                    // print(response.result.value)

                    if response.result.isSuccess {
                        let jsonDic = response.result.value as! NSDictionary
                        let breinResult = BreinResult(dictResponse: jsonDic)
                        success(breinResult)


                    // http status
                    let status = response.response?.statusCode
                    if status == 200 {
                        let jsonDic = response.result.value as! NSDictionary
                        // dump(jsonDic)
