Skip to content

Commit fb73a2b

Browse files
authored
Use 405 status code for un-implemented methods for the Realtime API (#2158)
1 parent 2aa0808 commit fb73a2b

File tree

1 file changed

+1
-1
lines changed
  • python/serve/cortex_internal/serve

1 file changed

+1
-1
lines changed

python/serve/cortex_internal/serve/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def handle(request: Request):
187187
verb = request.method.lower()
188188
handle_fn_args = local_cache["handle_fn_args"]
189189
if verb not in handle_fn_args:
190-
raise UserRuntimeException(f"`handle_{verb}` method is not implemented")
190+
return Response(status_code=405, content="method not implemented")
191191

192192
handler_impl = local_cache["handler_impl"]
193193
dynamic_batcher = None

0 commit comments

Comments
 (0)