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 status codes introduced by RFC 6585 #59014

Closed
EungJunYi mannequin opened this issue May 14, 2012 · 6 comments
Closed

Add HTTP status codes introduced by RFC 6585 #59014

EungJunYi mannequin opened this issue May 14, 2012 · 6 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@EungJunYi
Copy link
Mannequin

EungJunYi mannequin commented May 14, 2012

BPO 14809
Nosy @orsenthil, @hynek
Files
  • rfc6585.patch
  • rfc6585-rev2.patch
  • 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 2012-05-16.09:38:42.448>
    created_at = <Date 2012-05-14.18:01:11.550>
    labels = ['type-feature', 'library']
    title = 'Add HTTP status codes introduced by RFC 6585'
    updated_at = <Date 2012-05-16.09:38:42.447>
    user = 'https://bugs.python.org/EungJunYi'

    bugs.python.org fields:

    activity = <Date 2012-05-16.09:38:42.447>
    actor = 'hynek'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-05-16.09:38:42.448>
    closer = 'hynek'
    components = ['Library (Lib)']
    creation = <Date 2012-05-14.18:01:11.550>
    creator = 'EungJun.Yi'
    dependencies = []
    files = ['25582', '25597']
    hgrepos = []
    issue_num = 14809
    keywords = ['patch']
    message_count = 6.0
    messages = ['160651', '160652', '160717', '160732', '160816', '160820']
    nosy_count = 4.0
    nosy_names = ['orsenthil', 'python-dev', 'EungJun.Yi', 'hynek']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue14809'
    versions = ['Python 3.3']

    @EungJunYi
    Copy link
    Mannequin Author

    EungJunYi mannequin commented May 14, 2012

    This patch add HTTP status codes introduced by RFC 6585, to http.client and http.server.

    428 Precondition Required
    429 Too Many Requests
    431 Request Header Fields Too Large
    511 Network Authentication Required

    @EungJunYi EungJunYi mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels May 14, 2012
    @hynek
    Copy link
    Member

    hynek commented May 14, 2012

    I've cross-checked the patch against the RFC and it LGTM. Tests still pass as expected.

    @hynek
    Copy link
    Member

    hynek commented May 15, 2012

    EungYun,

    After further research I've found two issue which you should fix before it can be checked in:

    Would you like to update your patch?

    @EungJunYi
    Copy link
    Mannequin Author

    EungJunYi mannequin commented May 15, 2012

    Hynek, I have fixed them and upload the patch, rfc6585-rev2.patch.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented May 16, 2012

    New changeset 981aabe6ea2f by Hynek Schlawack in branch 'default':
    bpo-14809: Add HTTP status codes from RFC 6585 to http.server and http.client
    http://hg.python.org/cpython/rev/981aabe6ea2f

    @hynek
    Copy link
    Member

    hynek commented May 16, 2012

    Thank you for your contribution to Python, EungJun!

    Just two small remarks:

    • Please sign and submit the contributor form from http://www.python.org/psf/contrib/ . You'll get a nice star next to your name in return. :)
    • I have fixed the flow of one of the lines. It's no big deal, but PEP-8 asks for a max line length of 79 characters.

    @hynek hynek closed this as completed May 16, 2012
    @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
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant