 
 class AlamoNetworkManager : NetworkManager
 {
+    private static let validStatusCodes = (200...299)
     var configuration: APIConfiguration
     
     required init(with configuration: APIConfiguration) {

                                    } else {
                                        success(currentResponse)
                                    }
                                } else if let error = rawResponse.error as NSError? {
                                    var reason = MSError.ResponseFailureReason.badRequest(code: error.code)
                                    
                                    if let statusCode = rawResponse.response?.statusCode
                                    {
                                        //if the response has a 401 that means we have an authentication issue
                                        reason = MSError.ResponseFailureReason(code: statusCode)
                                    }

                                    failure(MSError.responseValidationFailed(reason: reason),
                                            self.errorResponse(fromData: rawResponse.data, request: rawResponse.request))
                                }
        }
    }
    
    
    /// Returns an error response from a data stream
    ///

                               method: method,
                               parameters: parameters,
                               encoding: encoding,
                               headers: headers).validate(statusCode: AlamoNetworkManager.validStatusCodes).responseJSON { rawResponse in
                                
                                if let response = rawResponse.value as? [String:Any],
                                    rawResponse.error == nil {
