Skip to content

Commit

Permalink
Fix error code being wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Apr 22, 2024
1 parent c55c8ba commit 6d6ffab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def thumbnail_response_error(redirect_url: str | None, text: str) -> Response:
if redirect_url is not None and redirect_url.startswith("https://i.ytimg.com"):
return RedirectResponse(redirect_url)
else:
raise HTTPException(status_code=400, detail=text)
raise HTTPException(status_code=204, detail=text)

@app.get("/api/v1/status")
def get_status(auth: str | None = None) -> dict[str, Any]:
Expand Down

0 comments on commit 6d6ffab

Please sign in to comment.