func NewGetIOCTooManyRequests() *GetIOCTooManyRequests {
	return &GetIOCTooManyRequests{}
}
NewGetIOCTooManyRequests creates a GetIOCTooManyRequests with default headers values
package iocs
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 GetIOCReader struct {
	formats strfmt.Registry
}
func (o *GetIOCReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetIOCOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 403:
		result := NewGetIOCForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewGetIOCTooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		result := NewGetIOCDefault(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 NewGetIOCOK() *GetIOCOK {
	return &GetIOCOK{}
}
type GetIOCOK struct {
	XCSTRACEID string
	XRateLimitLimit int64
	XRateLimitRemaining int64
	Payload *models.APIMsaReplyIOC
}
func (o *GetIOCOK) Error() string {
	return fmt.Sprintf("[GET /indicators/entities/iocs/v1][%d] getIOCOK  %+v", 200, o.Payload)
}
func (o *GetIOCOK) GetPayload() *models.APIMsaReplyIOC {
	return o.Payload
}
func (o *GetIOCOK) 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.APIMsaReplyIOC)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetIOCForbidden() *GetIOCForbidden {
	return &GetIOCForbidden{}
}
type GetIOCForbidden struct {
	XCSTRACEID string
	XRateLimitLimit int64
	XRateLimitRemaining int64
	Payload *models.MsaReplyMetaOnly
}
func (o *GetIOCForbidden) Error() string {
	return fmt.Sprintf("[GET /indicators/entities/iocs/v1][%d] getIOCForbidden  %+v", 403, o.Payload)
}
func (o *GetIOCForbidden) GetPayload() *models.MsaReplyMetaOnly {
	return o.Payload
}
func (o *GetIOCForbidden) 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
}