Skip to content

Better HTTP Status Code for Empty Requests #365

@mbbyn

Description

@mbbyn

System Info

(I don't think it's necessary)

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

image

Expected behavior

HTTP status 400 is more appropriate IMHO. The 413 status code might lead to misinterpretation. For example, when integrated with Dify, dify translates the 413 to Payload too large, but there is not payload to begin with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions