From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Translation of http status code to text Date: Mon, 22 Mar 2010 08:17:29 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87hbo81onq.fsf@lifelogs.com> References: <87sk7vllgj.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269263880 3433 80.91.229.12 (22 Mar 2010 13:18:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2010 13:18:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 22 14:17:57 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NthW0-0007HH-1G for ged-emacs-devel@m.gmane.org; Mon, 22 Mar 2010 14:17:56 +0100 Original-Received: from localhost ([127.0.0.1]:46951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NthVw-0003HV-V9 for ged-emacs-devel@m.gmane.org; Mon, 22 Mar 2010 09:17:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NthVs-0003HD-A6 for emacs-devel@gnu.org; Mon, 22 Mar 2010 09:17:48 -0400 Original-Received: from [140.186.70.92] (port=39218 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NthVo-0003FE-4j for emacs-devel@gnu.org; Mon, 22 Mar 2010 09:17:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NthVm-00007t-V8 for emacs-devel@gnu.org; Mon, 22 Mar 2010 09:17:44 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:46920) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NthVm-00007n-PQ for emacs-devel@gnu.org; Mon, 22 Mar 2010 09:17:42 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NthVl-000792-Q5 for emacs-devel@gnu.org; Mon, 22 Mar 2010 14:17:41 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Mar 2010 14:17:41 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Mar 2010 14:17:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:e3H7Ks5hKTTbg2QWvXXkUzkMktc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122465 Archived-At: On Mon, 22 Mar 2010 03:19:32 +0200 Juri Linkov wrote: >> 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)? >> >> If not could we please add one that can be used from different elisp >> files that needs this? JL> I suppose this should be in lisp/url/url-http.el. The codes are used (and listed in the comments) in url-http-parse-headers. Would it be OK to just make an alist with symbols and text, e.g. (setq url-http-codes '((206 (url-http-code-partial-content "Partial content")))) ... (assq 206 url-http-codes) or is there anything else needed? Ted