Skip to content

Add "421 Misdirected Request" http exception #2850

Closed

Description

@n1ngu

Related: #1256

Any concerns against adding a http exception class for this status code?

Right now aborting fails with a LookupError: no exception for <HTTPStatus.MISDIRECTED_REQUEST: 421> error if you try

abort(http.HTTPStatus.MISDIRECTED_REQUEST)

The Aborter class can be enriched to feature extra status codes and the Response class can be used to return arbitrary status codes and messages. But wouldn't it make sense that this http exception was featured out of the box?

Activity

  1. added this to the 3.1.0 milestone on May 5, 2024
  2. locked as resolved and limited conversation to collaborators on Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions