Skip to content

Commit f317c90

Browse files
Update DevProxy.Plugins/Behavior/LanguageModelRateLimitingPlugin.cs
Co-authored-by: Copilot <[email protected]>
1 parent f45a273 commit f317c90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DevProxy.Plugins/Behavior/LanguageModelRateLimitingPlugin.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ public override Task BeforeRequestAsync(ProxyRequestArgs e, CancellationToken ca
190190
else
191191
{
192192
Logger.LogRequest($"Custom behavior not set. {Configuration.CustomResponseFile} not found.", MessageType.Failed, new(e.Session));
193+
e.Session.GenericResponse("Custom response file not found.", HttpStatusCode.InternalServerError, Array.Empty<HttpHeader>());
194+
state.HasBeenSet = true;
193195
}
194196
}
195197
}

0 commit comments

Comments
 (0)