We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ec25c commit a2fb2a6Copy full SHA for a2fb2a6
1 file changed
src/pqnstack/app/api/routes/chsh.py
@@ -97,7 +97,7 @@ async def _chsh( # Complexity is high due to the nature of the CHSH experiment.
97
98
if negative_count in impossible_counts:
99
msg = f"Impossible negative expectation values found: {negative_indices}, expectation_values = {expectation_values}, expectation_errors = {expectation_errors}"
100
- raise HTTPException(status_code=504, detail=msg)
+ raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)
101
102
if len(negative_indices) > 1 or negative_indices[0] != 0:
103
logger.warning("Expectation values have unexpected negative indices: %s", negative_indices)
0 commit comments