zrok/rest_server_zrok/operations/share/oauth_authenticate_responses.go

63 lines
1.7 KiB
Go
Raw Normal View History

// Code generated by go-swagger; DO NOT EDIT.
package share
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-openapi/runtime"
)
// OauthAuthenticateOKCode is the HTTP code returned for type OauthAuthenticateOK
const OauthAuthenticateOKCode int = 200
/*
OauthAuthenticateOK testing
swagger:response oauthAuthenticateOK
*/
type OauthAuthenticateOK struct {
}
// NewOauthAuthenticateOK creates OauthAuthenticateOK with default headers values
func NewOauthAuthenticateOK() *OauthAuthenticateOK {
return &OauthAuthenticateOK{}
}
// WriteResponse to the client
func (o *OauthAuthenticateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(200)
}
2023-07-18 20:03:43 +02:00
// OauthAuthenticateInternalServerErrorCode is the HTTP code returned for type OauthAuthenticateInternalServerError
const OauthAuthenticateInternalServerErrorCode int = 500
/*
OauthAuthenticateInternalServerError internal server error
swagger:response oauthAuthenticateInternalServerError
*/
type OauthAuthenticateInternalServerError struct {
}
// NewOauthAuthenticateInternalServerError creates OauthAuthenticateInternalServerError with default headers values
func NewOauthAuthenticateInternalServerError() *OauthAuthenticateInternalServerError {
return &OauthAuthenticateInternalServerError{}
}
// WriteResponse to the client
func (o *OauthAuthenticateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(500)
}