     case unexpectedSituation = 132
 }
 
-// MARK: Typealias
+// MARK: - Typealias
 
-typealias MIFailureCompletionHandler = (_ error: Error) -> Void
+typealias IMFailCompletionHandler = (_ error: Error) -> Void
 
 // MARK: - IMApiClient: JsonApiClient -
 

        }
    }
    
    fileprivate func fetchForCollection<T>(_ request: URLRequest, rootKeys: [String], parseBlock: @escaping ([JSONDictionary]) -> [T]?, success: @escaping ([T]) -> Void, failure: @escaping MIFailureCompletionHandler) {
        func parsingJsonError() -> Error {
            return NSError(
                domain: ErrorDomain.UnexpectedResponse,

    
    // MARK: Private
    
    fileprivate func fetchForResource<T>(_ request: URLRequest, parseBlock: @escaping (JSONDictionary) -> T?, success: @escaping (T) -> Void, fail: @escaping IMFailCompletionHandler) {
        fetchJson(for: request) { [unowned self] result in
            if let error = self.checkApiClientResultForAnError(result) {
                fail(error)
