func NewGetRelationTuplesInternalServerError() *GetRelationTuplesInternalServerError {
	return &GetRelationTuplesInternalServerError{}
}
NewGetRelationTuplesInternalServerError creates a GetRelationTuplesInternalServerError 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 GetRelationTuplesReader struct {
	formats strfmt.Registry
}
func (o *GetRelationTuplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetRelationTuplesOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 404:
		result := NewGetRelationTuplesNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetRelationTuplesInternalServerError()
		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 NewGetRelationTuplesOK() *GetRelationTuplesOK {
	return &GetRelationTuplesOK{}
}
type GetRelationTuplesOK struct {
	Payload *models.GetRelationTuplesResponse
}
func (o *GetRelationTuplesOK) Error() string {
	return fmt.Sprintf("[GET /relation-tuples][%d] getRelationTuplesOK  %+v", 200, o.Payload)
}
func (o *GetRelationTuplesOK) GetPayload() *models.GetRelationTuplesResponse {
	return o.Payload
}
func (o *GetRelationTuplesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.GetRelationTuplesResponse)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetRelationTuplesNotFound() *GetRelationTuplesNotFound {
	return &GetRelationTuplesNotFound{}
}
type GetRelationTuplesNotFound struct {
	Payload *GetRelationTuplesNotFoundBody
}
func (o *GetRelationTuplesNotFound) Error() string {
	return fmt.Sprintf("[GET /relation-tuples][%d] getRelationTuplesNotFound  %+v", 404, o.Payload)
}
func (o *GetRelationTuplesNotFound) GetPayload() *GetRelationTuplesNotFoundBody {
	return o.Payload
}
func (o *GetRelationTuplesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetRelationTuplesNotFoundBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}