func NewGetComplianceByResourceTypesBadRequest() *GetComplianceByResourceTypesBadRequest {
	return &GetComplianceByResourceTypesBadRequest{}
}
NewGetComplianceByResourceTypesBadRequest creates a GetComplianceByResourceTypesBadRequest with default headers values
package scans
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type GetComplianceByResourceTypesReader struct {
	formats strfmt.Registry
}
func (o *GetComplianceByResourceTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetComplianceByResourceTypesOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetComplianceByResourceTypesBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetComplianceByResourceTypesUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetComplianceByResourceTypesForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetComplianceByResourceTypesNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetComplianceByResourceTypesInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}
func NewGetComplianceByResourceTypesOK() *GetComplianceByResourceTypesOK {
	return &GetComplianceByResourceTypesOK{}
}
type GetComplianceByResourceTypesOK struct {
	Payload *models.ComplianceByResourceTypeOutput
}
func (o *GetComplianceByResourceTypesOK) Error() string {
	return fmt.Sprintf("[GET /scans/{scan_id}/compliance_by_resource_types][%d] getComplianceByResourceTypesOK  %+v", 200, o.Payload)
}
func (o *GetComplianceByResourceTypesOK) GetPayload() *models.ComplianceByResourceTypeOutput {
	return o.Payload
}
func (o *GetComplianceByResourceTypesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.ComplianceByResourceTypeOutput)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}