Skip to content

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

Merged
AUTOMATIC1111 merged 1 commit intoAUTOMATIC1111:devfrom
ibrahimsn98:master
Jul 6, 2024
Merged

Return HTTP 400 instead of 404 on invalid sampler error#16140
AUTOMATIC1111 merged 1 commit intoAUTOMATIC1111:devfrom
ibrahimsn98:master

Conversation

@ibrahimsn98
Copy link
Copy Markdown
Contributor

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
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.

3 participants