Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return HTTP 400 instead of 404 on invalid sampler error #16140

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

ibrahimsn98
Copy link

Description

Due to a confusion I experienced while using it for my own project, I think it would be more accurate to give a 400 error instead of 404 on API design. Because this error is mostly related to the validation of the payload of the request. The endpoint which request made is actually exists. Please take a look at HTTP 404 and HTTP 400 error descriptions.

Screenshots/videos:

No screenshots required.

Checklist:

@ibrahimsn98 ibrahimsn98 changed the base branch from master to dev July 3, 2024 15:15
@AUTOMATIC1111 AUTOMATIC1111 merged commit af3ccee into AUTOMATIC1111:dev Jul 6, 2024
3 of 4 checks passed
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.

None yet

3 participants