CINXE.COM

[Distutils] [PEP 243] upload status is bogus

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE> [Distutils] [PEP 243] upload status is bogus </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:gstein%40lyra.org"> <META NAME="robots" CONTENT="index,nofollow"> <LINK REL="Previous" HREF="002260.html"> <LINK REL="Next" HREF="002265.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[Distutils] [PEP 243] upload status is bogus </H1> <B>Greg Stein </B> <A HREF="mailto:gstein%40lyra.org" TITLE="[Distutils] [PEP 243] upload status is bogus">gstein@lyra.org </A><BR> <I>Mon Mar 26 17:59:01 2001</I> <P><UL> <LI> Previous message: <A HREF="002260.html">[Distutils] ANNOUNCE: Distutils upload patch (PEP243) </A></li> <LI> Next message: <A HREF="002265.html">[Distutils] [PEP 243] upload status is bogus </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#2262">[ date ]</a> <a href="thread.html#2262">[ thread ]</a> <a href="subject.html#2262">[ subject ]</a> <a href="author.html#2262">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>I just read thru PEP 243 and got to the section &quot;Return Data&quot;. That information is bogus. HTTP already provides the upload client with various status codes. Specifically, let's look at the list in the PEP: PEP value HTTP Status SUCCESS 200 (Ok) FAILURE 4xx or 5xx TRYAGAIN 4xx or 5xx The PEP lists &quot;resource shortage&quot; as a possible TRYAGAIN error. That would map to 507 (Insufficent Storage). I'm sure there are other values that would make sense within this area. The PEP goes on to say that a human-readable string should provide further information. That is exactly what the body of the HTTP response is for. So... the answer here is to use the HTTP status codes like they're intended, and to use the HTTP response body as they're intended. This beats added another protocol layer on top of the response. Cheers, -g p.s. I'm not on the Distutils-SIG; I'd appreciate a CC for replies. -- Greg Stein, <A HREF="http://www.lyra.org/">http://www.lyra.org/</A> </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI> Previous message: <A HREF="002260.html">[Distutils] ANNOUNCE: Distutils upload patch (PEP243) </A></li> <LI> Next message: <A HREF="002265.html">[Distutils] [PEP 243] upload status is bogus </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#2262">[ date ]</a> <a href="thread.html#2262">[ thread ]</a> <a href="subject.html#2262">[ subject ]</a> <a href="author.html#2262">[ author ]</a> </LI> </UL> </body></html>

Pages: 1 2 3 4 5 6 7 8 9 10