         switch self {
         case .Success(_, let response):
             return response
-        case .Failure(_, let response):
+        case .Failure(_, let response, _):
             return response
         }
     }

        switch self {
        case .Success:
            return nil
        case .Failure(let error, _):
            return error
        }
    }

    public func post(url: String, params: JSONObject? = nil, payload: AnyObject? = nil,
        headers: JSONObject? = nil) -> JSONResult {
            return submitSyncRequest("POST", url: url, payload: payload, headers: headers)
    }

    public func put(url: String, params: JSONObject? = nil, payload: AnyObject? = nil,
        headers: JSONObject? = nil) -> JSONResult {
            return submitSyncRequest("PUT", url: url, payload: payload, headers: headers)
    }

}
