                                         {
                                             if let error = responseBody["error"]
                                             {
-                                                let error = NSError(domain: SessionManager.errorDomain, code: -1, userInfo: [NSLocalizedDescriptionKey: error])
+                                                let error = NSError(domain: kErrorDomain, code: -1, userInfo: [NSLocalizedDescriptionKey: error])
                                                 failedHandler(error)
                                             }
                                             else

                                    }
                                    else
                                    {
                                        let error = NSError(domain: SessionManager.errorDomain, code: -1, userInfo: [NSLocalizedDescriptionKey:  "Invalid content type"])
                                        failedHandler(error)
                                    }
                                }

                    }
                    else
                    {
                        let error = NSError(domain: kErrorDomain, code: -1, userInfo: [NSLocalizedDescriptionKey: "No data returned from the server"])
                        failedHandler(error)
                    }
                }
