Skip to content

Commit 275a2b5

Browse files
committed
test: Add /403-without-body API
1 parent 58edc91 commit 275a2b5

File tree

1 file changed

+6
-0
lines changed
  • tests/frontendIntegration/fastapi-server

1 file changed

+6
-0
lines changed

tests/frontendIntegration/fastapi-server/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ def session_claim_error_api(_session: SessionContainer = Depends(verify_session(
386386
return JSONResponse({})
387387

388388

389+
@app.post("/403-without-body")
390+
def without_body_403():
391+
# send 403 without body
392+
return PlainTextResponse(content=None, status_code=403)
393+
394+
389395
@app.options("/testing")
390396
def testing_options():
391397
return send_options_api_response()

0 commit comments

Comments
 (0)