[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Translation of http status code to text
From: |
joakim |
Subject: |
Re: Translation of http status code to text |
Date: |
Tue, 23 Mar 2010 11:54:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) |
Juri Linkov <address@hidden> writes:
>> SM> The symbol part depends on the rest of the patch: what do you use the
>> SM> symbol for? Do you even need it?
>>
>> I was going to change url-http.el like so, in url-http-parse-headers:
>>
>> (case url-http-response-status
>> ((url-http-code-multiple-choices) ; was 300, uses defconst
>> ...
>> nil)
>> ...)
>>
>> and I thought generating the defconsts would be best without dynamically
>> generating the symbol name as "url-http-code-%s" from the symbol in the
>> table.
>>
>> But instead I can say (url-http-code-number 'multiple-choices). It's
>> really a matter of taste.
>
> Please don't add symbols. Developers prefer to refer to numbers.
>
> The "number to text" mapping is necessary only to display codes
> in a readable form to users. Please re-read Lennart's original
> request:
>
> Is there a list in Emacs for translating http status code to readable
> text (like http://en.wikipedia.org/wiki/List_of_HTTP_status_codes)?
As a developer I'd like both numbers and symbols. Maybe thats just me. I
think this is a bit particular for the http protocol, since some codes
are extremely well known, whereas others are not.
--
Joakim Verona
- Re: highlighting non-ASCII characters, (continued)
- Re: highlighting non-ASCII characters, Lennart Borgman, 2010/03/26
- Re: highlighting non-ASCII characters, Juri Linkov, 2010/03/25
- RE: highlighting non-ASCII characters, Drew Adams, 2010/03/23
- Re: highlighting non-ASCII characters, Stephen J. Turnbull, 2010/03/24
- Re: highlighting non-ASCII characters, Juri Linkov, 2010/03/24
- Re: highlighting non-ASCII characters, Ted Zlatanov, 2010/03/24
- Re: highlighting non-ASCII characters, Juri Linkov, 2010/03/24
- Re: Translation of http status code to text, Stefan Monnier, 2010/03/22
- Re: Translation of http status code to text, Ted Zlatanov, 2010/03/22
- Re: Translation of http status code to text, Juri Linkov, 2010/03/23
- Re: Translation of http status code to text,
joakim <=
- Re: Translation of http status code to text, Ted Zlatanov, 2010/03/23
- Re: Translation of http status code to text, Stefan Monnier, 2010/03/23
- Re: Translation of http status code to text, Glenn Morris, 2010/03/24
- Re: Translation of http status code to text, Ted Zlatanov, 2010/03/24
- Re: Translation of http status code to text, Ted Zlatanov, 2010/03/24
- Re: Translation of http status code to text, Stefan Monnier, 2010/03/23