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

Add HTTP Response code 421 #74738

Closed
julienc91 mannequin opened this issue Jun 2, 2017 · 5 comments
Closed

Add HTTP Response code 421 #74738

julienc91 mannequin opened this issue Jun 2, 2017 · 5 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@julienc91
Copy link
Mannequin

julienc91 mannequin commented Jun 2, 2017

BPO 30553
Nosy @rhettinger, @berkerpeksag, @julienc91, @vmsp
PRs
  • bpo-30553: Add status code 421 (Misdirected Req.) to http.HTTPStatus #2589
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-10-26.18:50:50.797>
    created_at = <Date 2017-06-02.12:50:32.258>
    labels = ['3.7', 'type-feature', 'library']
    title = 'Add HTTP Response code 421'
    updated_at = <Date 2017-10-26.18:50:50.794>
    user = 'https://github.com/julienc91'

    bugs.python.org fields:

    activity = <Date 2017-10-26.18:50:50.794>
    actor = 'berker.peksag'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-10-26.18:50:50.797>
    closer = 'berker.peksag'
    components = ['Library (Lib)']
    creation = <Date 2017-06-02.12:50:32.258>
    creator = 'julienc'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30553
    keywords = []
    message_count = 5.0
    messages = ['295013', '297755', '297901', '305080', '305081']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'berker.peksag', 'julienc', 'vmsp']
    pr_nums = ['2589']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30553'
    versions = ['Python 3.7']

    @julienc91
    Copy link
    Mannequin Author

    julienc91 mannequin commented Jun 2, 2017

    The http.HTTPStatus class provides constants for most of the HTTP status codes.
    Status code 421 was added by the RFC 7540 (HTTP/2), and is not part of this class. It is described as follows:

    The 421 (Misdirected Request) status code indicates that the request
    was directed at a server that is not able to produce a response.
    This can be sent by a server that is not configured to produce
    responses for the combination of scheme and authority that are
    included in the request URI.

    Would it be possible to create the corresponding constant in http.HTTPStatus?

    For reference:

    @julienc91 julienc91 mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jun 2, 2017
    @vmsp
    Copy link
    Mannequin

    vmsp mannequin commented Jul 5, 2017

    I just submitted a PR, feel free to take a look.

    @rhettinger
    Copy link
    Contributor

    +1

    @berkerpeksag
    Copy link
    Member

    New changeset 52ad72d by Berker Peksag (Vitor Pereira) in branch 'master':
    bpo-30553: Add status code 421 to http.HTTPStatus (GH-2589)
    52ad72d

    @berkerpeksag
    Copy link
    Member

    Thank you Julien (for the report) and Vitor (for the patch)

    @berkerpeksag berkerpeksag added the 3.7 (EOL) end of life label Oct 26, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants