func NewGetCheckInternalServerError() *GetCheckInternalServerError {
	return &GetCheckInternalServerError{}
}
NewGetCheckInternalServerError creates a GetCheckInternalServerError with default headers values
package read
import (
	"context"
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/ory/keto/internal/httpclient/models"
)
type GetCheckReader struct {
	formats strfmt.Registry
}
func (o *GetCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetCheckOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetCheckBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetCheckForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetCheckInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewGetCheckOK() *GetCheckOK {
	return &GetCheckOK{}
}
type GetCheckOK struct {
	Payload *models.GetCheckResponse
}
func (o *GetCheckOK) Error() string {
	return fmt.Sprintf("[GET /check][%d] getCheckOK  %+v", 200, o.Payload)
}
func (o *GetCheckOK) GetPayload() *models.GetCheckResponse {
	return o.Payload
}
func (o *GetCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.GetCheckResponse)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetCheckBadRequest() *GetCheckBadRequest {
	return &GetCheckBadRequest{}
}
type GetCheckBadRequest struct {
	Payload *GetCheckBadRequestBody
}
func (o *GetCheckBadRequest) Error() string {
	return fmt.Sprintf("[GET /check][%d] getCheckBadRequest  %+v", 400, o.Payload)
}
func (o *GetCheckBadRequest) GetPayload() *GetCheckBadRequestBody {
	return o.Payload
}
func (o *GetCheckBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetCheckBadRequestBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetCheckForbidden() *GetCheckForbidden {
	return &GetCheckForbidden{}
}
type GetCheckForbidden struct {
	Payload *models.GetCheckResponse
}
func (o *GetCheckForbidden) Error() string {
	return fmt.Sprintf("[GET /check][%d] getCheckForbidden  %+v", 403, o.Payload)
}
func (o *GetCheckForbidden) GetPayload() *models.GetCheckResponse {
	return o.Payload
}
func (o *GetCheckForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.GetCheckResponse)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}