func (o *QueryGetNetworkAddressHistoryV1Default) Code() int {
	return o._statusCode
}
Code gets the status code for the query get network address history v1 default response
package hosts
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/crowdstrike/gofalcon/falcon/models"
)
type QueryGetNetworkAddressHistoryV1Reader struct {
	formats strfmt.Registry
}
func (o *QueryGetNetworkAddressHistoryV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewQueryGetNetworkAddressHistoryV1OK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 403:
		result := NewQueryGetNetworkAddressHistoryV1Forbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewQueryGetNetworkAddressHistoryV1TooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		result := NewQueryGetNetworkAddressHistoryV1Default(response.Code())
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		if response.Code()/100 == 2 {
			return result, nil
		}
		return nil, result
	}
}
func NewQueryGetNetworkAddressHistoryV1OK() *QueryGetNetworkAddressHistoryV1OK {
	return &QueryGetNetworkAddressHistoryV1OK{}
}
type QueryGetNetworkAddressHistoryV1OK struct {
	XCSTRACEID string
	XRateLimitLimit int64
	XRateLimitRemaining int64
	Payload *models.DeviceapiNetworkAddressHistoryResponseV1
}
func (o *QueryGetNetworkAddressHistoryV1OK) Error() string {
	return fmt.Sprintf("[POST /devices/combined/devices/network-address-history/v1][%d] queryGetNetworkAddressHistoryV1OK  %+v", 200, o.Payload)
}
func (o *QueryGetNetworkAddressHistoryV1OK) GetPayload() *models.DeviceapiNetworkAddressHistoryResponseV1 {
	return o.Payload
}
func (o *QueryGetNetworkAddressHistoryV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
	if hdrXCSTRACEID != "" {
		o.XCSTRACEID = hdrXCSTRACEID
	}
	hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
	if hdrXRateLimitLimit != "" {
		valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
		if err != nil {
			return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
		}
		o.XRateLimitLimit = valxRateLimitLimit
	}
	hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
	if hdrXRateLimitRemaining != "" {
		valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
		if err != nil {
			return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
		}
		o.XRateLimitRemaining = valxRateLimitRemaining
	}
	o.Payload = new(models.DeviceapiNetworkAddressHistoryResponseV1)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewQueryGetNetworkAddressHistoryV1Forbidden() *QueryGetNetworkAddressHistoryV1Forbidden {
	return &QueryGetNetworkAddressHistoryV1Forbidden{}
}
type QueryGetNetworkAddressHistoryV1Forbidden struct {
	XCSTRACEID string
	XRateLimitLimit int64
	XRateLimitRemaining int64
	Payload *models.MsaReplyMetaOnly
}
func (o *QueryGetNetworkAddressHistoryV1Forbidden) Error() string {
	return fmt.Sprintf("[POST /devices/combined/devices/network-address-history/v1][%d] queryGetNetworkAddressHistoryV1Forbidden  %+v", 403, o.Payload)
}
func (o *QueryGetNetworkAddressHistoryV1Forbidden) GetPayload() *models.MsaReplyMetaOnly {
	return o.Payload
}
func (o *QueryGetNetworkAddressHistoryV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
	if hdrXCSTRACEID != "" {
		o.XCSTRACEID = hdrXCSTRACEID
	}
	hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
	if hdrXRateLimitLimit != "" {
		valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
		if err != nil {
			return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
		}
		o.XRateLimitLimit = valxRateLimitLimit
	}
	hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
	if hdrXRateLimitRemaining != "" {
		valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
		if err != nil {
			return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
		}
		o.XRateLimitRemaining = valxRateLimitRemaining
	}
	o.Payload = new(models.MsaReplyMetaOnly)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewQueryGetNetworkAddressHistoryV1TooManyRequests() *QueryGetNetworkAddressHistoryV1TooManyRequests {
	return &QueryGetNetworkAddressHistoryV1TooManyRequests{}
}
type QueryGetNetworkAddressHistoryV1TooManyRequests struct {
	XCSTRACEID string
	XRateLimitLimit int64
	XRateLimitRemaining int64
	XRateLimitRetryAfter int64
	Payload *models.MsaReplyMetaOnly
}
func (o *QueryGetNetworkAddressHistoryV1TooManyRequests) Error() string {
	return fmt.Sprintf("[POST /devices/combined/devices/network-address-history/v1][%d] queryGetNetworkAddressHistoryV1TooManyRequests  %+v", 429, o.Payload)
}
func (o *QueryGetNetworkAddressHistoryV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
	return o.Payload
}
func (o *QueryGetNetworkAddressHistoryV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
	if hdrXCSTRACEID != "" {
		o.XCSTRACEID = hdrXCSTRACEID
	}
	hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
	if hdrXRateLimitLimit != "" {
		valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
		if err != nil {
			return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
		}
		o.XRateLimitLimit = valxRateLimitLimit
	}
	hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
	if hdrXRateLimitRemaining != "" {
		valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
		if err != nil {
			return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
		}
		o.XRateLimitRemaining = valxRateLimitRemaining
	}
	hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
	if hdrXRateLimitRetryAfter != "" {
		valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
		if err != nil {
			return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
		}
		o.XRateLimitRetryAfter = valxRateLimitRetryAfter
	}
	o.Payload = new(models.MsaReplyMetaOnly)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewQueryGetNetworkAddressHistoryV1Default(code int) *QueryGetNetworkAddressHistoryV1Default {
	return &QueryGetNetworkAddressHistoryV1Default{
		_statusCode: code,
	}
}
type QueryGetNetworkAddressHistoryV1Default struct {
	_statusCode int
	Payload *models.DeviceapiNetworkAddressHistoryResponseV1
}