func NewDeleteCredentialsIDNotFound() *DeleteCredentialsIDNotFound {
	return &DeleteCredentialsIDNotFound{}
}
NewDeleteCredentialsIDNotFound creates a DeleteCredentialsIDNotFound with default headers values
package credential
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/validate"
	strfmt "github.com/go-openapi/strfmt"
)
type DeleteCredentialsIDReader struct {
	formats strfmt.Registry
}
func (o *DeleteCredentialsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 202:
		result := NewDeleteCredentialsIDAccepted()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 204:
		result := NewDeleteCredentialsIDNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewDeleteCredentialsIDBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewDeleteCredentialsIDUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewDeleteCredentialsIDNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewDeleteCredentialsIDInternalServerError()
		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 NewDeleteCredentialsIDAccepted() *DeleteCredentialsIDAccepted {
	return &DeleteCredentialsIDAccepted{}
}
type DeleteCredentialsIDAccepted struct {
	Payload DeleteCredentialsIDAcceptedBody
}
func (o *DeleteCredentialsIDAccepted) Error() string {
	return fmt.Sprintf("[DELETE /credentials/{id}][%d] deleteCredentialsIdAccepted  %+v", 202, o.Payload)
}
func (o *DeleteCredentialsIDAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewDeleteCredentialsIDNoContent() *DeleteCredentialsIDNoContent {
	return &DeleteCredentialsIDNoContent{}
}
type DeleteCredentialsIDNoContent struct {
}
func (o *DeleteCredentialsIDNoContent) Error() string {
	return fmt.Sprintf("[DELETE /credentials/{id}][%d] deleteCredentialsIdNoContent ", 204)
}
func (o *DeleteCredentialsIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewDeleteCredentialsIDBadRequest() *DeleteCredentialsIDBadRequest {
	return &DeleteCredentialsIDBadRequest{}
}
type DeleteCredentialsIDBadRequest struct {
	Payload DeleteCredentialsIDBadRequestBody
}
func (o *DeleteCredentialsIDBadRequest) Error() string {
	return fmt.Sprintf("[DELETE /credentials/{id}][%d] deleteCredentialsIdBadRequest  %+v", 400, o.Payload)
}
func (o *DeleteCredentialsIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewDeleteCredentialsIDUnauthorized() *DeleteCredentialsIDUnauthorized {
	return &DeleteCredentialsIDUnauthorized{}
}
type DeleteCredentialsIDUnauthorized struct {
	Payload DeleteCredentialsIDUnauthorizedBody
}
func (o *DeleteCredentialsIDUnauthorized) Error() string {
	return fmt.Sprintf("[DELETE /credentials/{id}][%d] deleteCredentialsIdUnauthorized  %+v", 401, o.Payload)
}
func (o *DeleteCredentialsIDUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}