Error handling

When a REST service returns data, it normally returns a 200 OK HTTP status along with the returned XML data.

When a service encounters an error, it will return a 4xx or 5xx HTTP status. Along with this status, the response will contain an <error> element containing a specific error code and message.

Returns

<error> element

Refer to documented schema for more details.

Example

If requesting a folder item with an ID that does not exist:
<error>
          <code>CRWAE2440E</code>
          <help weblink="http://publib.boulder.ibm.com/infocenter/ASE56help/index.jsp?topic=/com.ibm.ase.help.doc/topics/ts_CRWAE2440E.html" />
          <message>The specified folder item does not exist.</message>
</error>