                           method: httpMethod,
                           parameters: parameters,
                           encoding: encoding,
-                          headers: headers).validate(statusCode: 200...299).responseJSON { rawResponse in
+                          headers: headers).validate(statusCode: AlamoNetworkManager.validStatusCodes).responseJSON { rawResponse in
                             //print response in DEBUG mode
                             #if DEBUG
                                 debugPrint(rawResponse)


class AlamoNetworkManager : NetworkManager
{
    var configuration: APIConfiguration
    
    required init(with configuration: APIConfiguration) {

                                    //return inmediatly
                                    success(response)
                                }
                            } else if let (reason, errorDetails) = self.buildError(fromResponse: rawResponse) {
                                //Figure out if we have an error and an error response
                                failure(MSError.responseValidationFailed(reason: reason), errorDetails)
                            } else {
                                //if the request is succesful but has no response (validation for http code has passed also)
                                success([String:Any]())
                            }
        }
    }

    
    //MARK: - Pagination
    
