Skip to content

Commit 7fe147d

Browse files
oidc_proxy_return_401
1 parent 7156a4e commit 7fe147d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/mvp/oidc_proxy/oidc_session_create.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class THandlerSessionCreate : public NActors::TActorBootstrapped<THandlerSession
152152
ctx.Send(HttpProxyId, new NHttp::TEvHttpProxy::TEvHttpOutgoingRequest(httpRequest));
153153
} else {
154154
ResponseHeaders.Set("Content-Type", "text/plain");
155-
NHttp::THttpOutgoingResponsePtr response = Request->CreateResponse("400", "Bad Request", ResponseHeaders, "Parameters state and code are invalid");
155+
NHttp::THttpOutgoingResponsePtr response = Request->CreateResponse("401", "Unauthorized", ResponseHeaders, "Parameters state and code are invalid");
156156
ctx.Send(Sender, new NHttp::TEvHttpProxy::TEvHttpOutgoingResponse(response));
157157
TBase::Die(ctx);
158158
return;

0 commit comments

Comments
 (0)