     /**
     Awful way of returning an error
     */
-    private func jsonError(req: Taylor.Request, res: Taylor.Response, message: String) -> Taylor.Callback {
+    private func jsonError(req: Taylor.Request, res: Taylor.Response, message: String) {
         res.bodyString = "{\"error\": \"\(message)\"}"
-        return Callback.Send(req, res)
     }
     
     /**

        self.completer = completer
        
        self.server = Taylor.Server()
        self.server.get("/stop") { req, res, callback in
            self.stop()
        }
        
        self.server.get("/complete") { req, res, callback in
            
            res.headers["Content-Type"] = "text/json"
            

            
            guard let offset = req.headers["X-Offset"].flatMap({ Int($0)})
                else {
                    self.jsonError(req, res: res, message: "Need X-Offset as completion offset for completion")
                    return .Send
            }
            
            guard let path = req.headers["X-Path"]
                else {
                    self.jsonError(req, res: res, message: "Need X-Path as path to the temporary buffer")
                    return .Send
            }
            
            guard let file = req.headers["X-File"]
                else {
                    self.jsonError(req, res: res, message: "Need X-File as name of the file in the project")
                    return .Send
            }
            
            let result = self.completer.complete(path, fileInProject: file, offset: offset)
            switch result {
            case .Success(result: _):
                res.bodyString = result.asJSONString()
                return .Send
            case .Failure(message: let msg):
                self.jsonError(req, res: res, message: msg)
                return .Send
            }
        }
        
