Skip to content

Commit f28f7d5

Browse files
committed
fix: update disabled endpoint to return 410 status code for better clarity
1 parent 9b18c88 commit f28f7d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/lexicon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def database_error_handler(
9494

9595

9696
def disabled_endpoint():
97-
raise HTTPException(status_code=404, detail="Endpoint disabled")
97+
raise HTTPException(status_code=410, detail="Endpoint disabled")
9898

9999

100100
# POST =========================================================================

0 commit comments

Comments
 (0)