         naive.GET("http://httpbin.org/status/404", successImage: { (image, response) -> () in
             XCTFail()
             self.networkExpectation!.fulfill()
-            }) { (error) -> () in
-                XCTAssertEqual(404, error.code)
-                self.networkExpectation!.fulfill()
+        }) { (error) -> () in
+            XCTAssertEqual(404, error.code)
+            self.networkExpectation!.fulfill()
         }
         
         self.waitForExpectationsWithTimeout(networkTimeout, handler: nil)

        let postObject = ["herp":"derp"];
        
        naive.POST("http://httpbin.org/status/500", postObject: postObject, success: { (responseJSON) -> Void in
                XCTFail()
                self.networkExpectation!.fulfill()
            }) { (error) -> Void in
                XCTAssertEqual(error.code, 500)
                XCTAssertEqual("HTTP Error 500", error.userInfo[NSLocalizedDescriptionKey] as? String)
                self.networkExpectation!.fulfill()
        }
        self.waitForExpectationsWithTimeout(networkTimeout, handler: nil)
    }

        let naive = NaiveHTTP(configuration: nil)
        
        naive.GET("http://httpbin.org/image/png", successImage: { (image, response) -> () in
            XCTAssertNotNil(image)
            self.networkExpectation!.fulfill()
        }) { (error) -> () in
            XCTFail()
            self.networkExpectation!.fulfill()
        }
        
        self.waitForExpectationsWithTimeout(networkTimeout, handler: nil)
