     /// Creates new instance of NetworkService with given Alamofire session manager
     ///
     /// - Parameter sessionManager: Alamofire.SessionManager to use for requests
-    public init(sessionManager: Alamofire.SessionManager) {
+    public init(sessionManager: Alamofire.SessionManager,
+                acceptableStatusCodes: [Int] = Alamofire.SessionManager.defaultAcceptableStatusCodes) {
+
         self.sessionManager = sessionManager
+        self.acceptableStatusCodes = acceptableStatusCodes
     }
 
     /// Perform reactive request to get mapped ObservableMappable model and http response


    public let sessionManager: Alamofire.SessionManager

    var requestCount: Driver<Int> {
        return requestCountVariable.asDriver()
    }

    public func rxRequest<T: ObservableMappable>(with parameters: ApiRequestParameters)
        -> Observable<(response: HTTPURLResponse, model: T)> where T.ModelType == T {

            return sessionManager.rx.responseObservableModel(requestParameters: parameters,
                                                             acceptableStatusCodes: acceptableStatusCodes)
                .counterTracking(for: self)
    }

