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

Andrew Dalke dalke at dalkescientific.com
Thu Nov 10 19:49:18 UTC 2005


Ed:
> Using the HTTP-level error codes can cause problems.

> I don't care if status code is indicated with a header like
> "X-DAS-Status: 200" or with some XML content, or with both.  But I 
> think  the HTTP status code has to be a separate thing, and will 
> usually be "400" indicating that the user (sorry, I meant to say 
> LeRoy) successfully communicated with the DAS server.

Okay, sounds like using HTTP codes for this causes problems in
practice.

What about returning a different content-type for that case?

200 Ok
Content-Type: application/x-das-error

<body>
Something bad happened.
</body>


Pros:
   - doesn't add a new header
   - just as easy to detect in the client
   - easier to support on the server for some use cases


					Andrew
					dalke at dalkescientific.com




More information about the DAS2 mailing list