Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 58f561f

Browse files
committed
fix openapi spec and response
1 parent 3e92156 commit 58f561f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

localstack-core/localstack/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,9 @@ paths:
10561056
description: Information about init scripts in a specific stage
10571057
'404':
10581058
content:
1059-
text/xml: {}
1059+
text/plain:
1060+
schema:
1061+
type: string
10601062
description: Stage not found
10611063
/_localstack/plugins:
10621064
get:

localstack-core/localstack/services/internal.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from datetime import datetime
99

1010
from plux import PluginManager
11-
from werkzeug.exceptions import NotFound
1211

1312
from localstack import config, constants
1413
from localstack.deprecations import deprecated_endpoint
@@ -260,8 +259,8 @@ def on_get(self, request, stage: str):
260259

261260
try:
262261
stage = Stage[stage.upper()]
263-
except KeyError as e:
264-
raise NotFound(f"no such stage {stage}") from e
262+
except KeyError:
263+
return Response(f"no such stage {stage}", 404)
265264

266265
return {
267266
"completed": manager.stage_completed.get(stage),

0 commit comments

Comments
 (0)