X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-go%2Fpkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_healthcheck_responses.go;fp=a1-go%2Fpkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_healthcheck_responses.go;h=84f363079447d807b407778237ae54d34e2163d2;hb=a5d992815f470a349dea86d616509222eb051f97;hp=20cf0caa56c88dd248eb6e0dbd1119c666ea1220;hpb=2705dc9e68c52693a510aca78a8c74c7fb042c7c;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_responses.go b/a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_responses.go index 20cf0ca..84f3630 100644 --- a/a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_responses.go +++ b/a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_responses.go @@ -55,3 +55,27 @@ func (o *A1ControllerGetHealthcheckOK) WriteResponse(rw http.ResponseWriter, pro rw.WriteHeader(200) } + +// A1ControllerGetHealthcheckInternalServerErrorCode is the HTTP code returned for type A1ControllerGetHealthcheckInternalServerError +const A1ControllerGetHealthcheckInternalServerErrorCode int = 500 + +/*A1ControllerGetHealthcheckInternalServerError Internal error to signal A1 is not healthy. Client should attempt to retry later. + +swagger:response a1ControllerGetHealthcheckInternalServerError +*/ +type A1ControllerGetHealthcheckInternalServerError struct { +} + +// NewA1ControllerGetHealthcheckInternalServerError creates A1ControllerGetHealthcheckInternalServerError with default headers values +func NewA1ControllerGetHealthcheckInternalServerError() *A1ControllerGetHealthcheckInternalServerError { + + return &A1ControllerGetHealthcheckInternalServerError{} +} + +// WriteResponse to the client +func (o *A1ControllerGetHealthcheckInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { + + rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses + + rw.WriteHeader(500) +}