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="https://help.hcl-software.com/appscan/Enterprise/10.2.0/topics/r_web_services_codes.html#r_web_services_codes__CRWAE2440E"/>
          <message>The specified folder item does not exist.</message>
</error>