[DAS2] Re: New problem with content-type header in DAS/2 server responses!

Andrew Dalke dalke at dalkescientific.com
Thu Nov 10 23:19:51 UTC 2005


> Here is some info from microsoft about these "friendly HTTP error 
> messages":
>
> http://support.microsoft.com/kb/q218155/
>
> Note that whether the real error message gets through seems to depend 
> on  both the error code, and the length of the content.  How is that 
> friendly?

Indeed.

>> Internet Explorer 5 and later provides a replacement for the HTML 
>> template for the following friendly error messages:
>>
>> 400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505

I've marked them with ***.  The only ones I think we might use,
were we to piggyback, are 409 (for locking?), 415 (for servers that
don't support a requested format) and 416 (for unsupported range
requests?).

  ***    400: ('Bad request',
               'Bad request syntax or unsupported method'),
         401: ('Unauthorized',
               'No permission -- see authorization schemes'),
         402: ('Payment required',
               'No payment -- see charging schemes'),
  ***    403: ('Forbidden',
               'Request forbidden -- authorization will not help'),
  ***    404: ('Not Found', 'Nothing matches the given URI'),
  ***    405: ('Method Not Allowed',
               'Specified method is invalid for this server.'),
  ***    406: ('Not Acceptable', 'URI not available in preferred 
format.'),
         407: ('Proxy Authentication Required', 'You must authenticate 
with '
               'this proxy before proceeding.'),
  ***    408: ('Request Time-out', 'Request timed out; try again 
later.'),
  ***    409: ('Conflict', 'Request conflict.'),
  ***    410: ('Gone',
               'URI no longer exists and has been permanently removed.'),
         411: ('Length Required', 'Client must specify Content-Length.'),
         412: ('Precondition Failed', 'Precondition in headers is 
false.'),
         413: ('Request Entity Too Large', 'Entity is too large.'),
         414: ('Request-URI Too Long', 'URI is too long.'),
         415: ('Unsupported Media Type', 'Entity body in unsupported 
format.'),
         416: ('Requested Range Not Satisfiable',
               'Cannot satisfy request range.'),
         417: ('Expectation Failed',
               'Expect condition could not be satisfied.'),

  ***    500: ('Internal error', 'Server got itself in trouble'),
  ***    501: ('Not Implemented',
               'Server does not support this operation'),
         502: ('Bad Gateway', 'Invalid responses from another 
server/proxy.'),
         503: ('Service temporarily overloaded',
               'The server cannot process the request due to a high 
load'),
         504: ('Gateway timeout',
               'The gateway server did not receive a timely response'),
  ***    505: ('HTTP Version not supported', 'Cannot fulfill request.'),



> I can look around when I get back from vacation, which I'm on all next 
> week.

Enjoy!
					Andrew
					dalke at dalkescientific.com




More information about the DAS2 mailing list