﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1047	Upload failures should report useful HTTP status lines	kpreid	nobody	"iCal, and perhaps other HTTP-PUT publishing applications, reports only the HTTP status line when the publishing upload fails:

{{{
Request for http://dummy@127.0.0.1:9797/uri/URI:DIR2:<redacted>/<redacted>.ics failed.

The server responded with
""HTTP/1.1 500 Internal Server Error""
}}}

The actual error was:

allmydata.interfaces.UploadUnhappinessError: shares could be placed on only 5 server(s) such that any 3 of them have enough shares to recover the file, but we were asked to place shares on at least 7 such servers. (placed all 10 shares, want to place shares on at least 7 servers such that any 3 of them have enough shares to recover the file, sent 14 queries to 9 peers, 10 queries placed some shares, 4 placed none (of which 4 placed none due to the server being full and 0 placed none due to an error))

Therefore, the routine which catches and displays this error as the response body should also set the HTTP status code to the most appropriate code for the error (for UploadUnhappinessError, probably 503 Service Unavailable), and set the status ''text'' to an abbreviated form of the error message; say ""Could not place sufficient shares because servers are full""."	enhancement	new	major	undecided	code-frontend-web	1.6.1		error http usability transparency	kpreid	
