<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.opendap.org/index.php?action=history&amp;feed=atom&amp;title=DAP4%3A_DAP4_Error_Responses</id>
	<title>DAP4: DAP4 Error Responses - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.opendap.org/index.php?action=history&amp;feed=atom&amp;title=DAP4%3A_DAP4_Error_Responses"/>
	<link rel="alternate" type="text/html" href="https://docs.opendap.org/index.php?title=DAP4:_DAP4_Error_Responses&amp;action=history"/>
	<updated>2026-06-10T12:21:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://docs.opendap.org/index.php?title=DAP4:_DAP4_Error_Responses&amp;diff=8229&amp;oldid=prev</id>
		<title>DennisHeimbigner: Created page with &quot;DevelopmentDAP4  &lt;&lt; Back to OPULS Development  == Background == It must be expected that any DAP4 server will enc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.opendap.org/index.php?title=DAP4:_DAP4_Error_Responses&amp;diff=8229&amp;oldid=prev"/>
		<updated>2012-05-08T21:51:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Development&quot; title=&quot;Category:Development&quot;&gt;Development&lt;/a&gt;&lt;a href=&quot;/index.php/Category:DAP4&quot; title=&quot;Category:DAP4&quot;&gt;DAP4&lt;/a&gt; &lt;a href=&quot;/index.php/OPULS_Development&quot; title=&quot;OPULS Development&quot;&gt; &amp;lt;&amp;lt; Back to OPULS Development&lt;/a&gt;  == Background == It must be expected that any DAP4 server will enc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Development|Development]][[Category:DAP4|DAP4]]&lt;br /&gt;
[[OPULS_Development| &amp;lt;&amp;lt; Back to OPULS Development]]&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
It must be expected that any DAP4 server will encounter unrecoverable errors when processing a DAP4 request. Thus the DAP4 protocol must be prepared to communicate such errors from the server to the requesting client.&lt;br /&gt;
&lt;br /&gt;
== Proposal ==&lt;br /&gt;
The [[DAP4: DAP4 Multipart Mime Format | multipart mime proposal]] is to be extended so that at any point, the sequence of parts can be terminated with an error part describing the error and ending the request.&lt;br /&gt;
&lt;br /&gt;
The proposed format for an error part is as follows.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--&amp;lt;&amp;lt;boundary&amp;gt;&amp;gt;&lt;br /&gt;
   Content-Type: text/xml; charset=UTF-8&lt;br /&gt;
   Content-Transfer-Encoding: binary&lt;br /&gt;
   Content-Description: error&lt;br /&gt;
       &amp;lt;&amp;lt;Error Body&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The error body contains information using a T.B.D. xml document structure.  It is proposed that the error body contain at least the following information.&lt;br /&gt;
# An error code (an integer) &amp;amp;ndash; provides a short characterization of the error. The set of error codes will be defined and extended as needed.&lt;br /&gt;
# An error message &amp;amp;ndash; provides a detailed characterization of the error.&lt;br /&gt;
# Positional information &amp;amp;ndash; where appropriate, this provides a &amp;quot;pointer&amp;quot; into some text document that shows where the error was detected. Possible documents include the DDX and the constraint expression. The positional information will include, as appropriate, a document reference, (optionally) a line number, and a character number either within the line or within the document as a whole.&lt;br /&gt;
# Context information &amp;amp;ndash; provide additional information that will help to isolate the error and its cause. A java stack trace would be an example of this.&lt;br /&gt;
# Other information &amp;amp;ndash; Any other arbitrary text information thought useful by the error detector.&lt;br /&gt;
&lt;br /&gt;
The error code and error message are the only required elements. The structure of the &amp;quot;other information&amp;quot; is undefined, but should look like a legal, if unvalidated, xml document.&lt;br /&gt;
&lt;br /&gt;
[[User:dmh|Dennis Heimbigner]]&lt;/div&gt;</summary>
		<author><name>DennisHeimbigner</name></author>
	</entry>
</feed>