Skip to content

fix: return apt Gone status code and error message when OTP no longer… - #54

Closed
drishyars wants to merge 2 commits into
knadh:masterfrom
drishyars:fix/otp-expiry-handling
Closed

fix: return apt Gone status code and error message when OTP no longer…#54
drishyars wants to merge 2 commits into
knadh:masterfrom
drishyars:fix/otp-expiry-handling

Conversation

@drishyars

Copy link
Copy Markdown
Contributor

When an OTP is no longer available in the store, the system currently returns a 400 Bad Request status. This creates an uncertainty between an invalid OTP input and an OTP that has expired or been removed. PR changes the response status code to return 410 Gone when the OTP is no longer available.

  • Fixed test cases

@drishyars

Copy link
Copy Markdown
Contributor Author

deleting the PR

@drishyars drishyars closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant