             (content, error) -> Void in
             XCTAssertNil(content)
             XCTAssertNotNil(error)
-            XCTAssertEqual(error?.domain, AlgoliaSearchErrorDomain)
+            XCTAssertEqual(error?.domain, Client.ErrorDomain)
             XCTAssertEqual(error?.code, 403)
             expectation.fulfill()
         }

            (content, error) -> Void in
            XCTAssertNil(content)
            XCTAssertNotNil(error)
            XCTAssertEqual(error?.domain, AlgoliaSearchErrorDomain)
            XCTAssertEqual(error?.code, StatusCode.IllFormedResponse.rawValue)
            expectation.fulfill()
        }

            (content, error) -> Void in
            XCTAssertNil(content)
            XCTAssertNotNil(error)
            XCTAssertEqual(error?.domain, Client.ErrorDomain)
            XCTAssertEqual(error?.code, StatusCode.IllFormedResponse.rawValue)
            expectation.fulfill()
        }
