Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
RobotWare return codes service

Standard HTTP return codes are used, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html. In case of error may also, as part of the payload, a robot specific return code be returned.

Example

Update a RAPID variable without required master ship.

curl --digest -u "Default User":robotics -d value=10 http://192.168.8.105/rw/rapid/symbol/data/RAPID/T_ROB1/user/reg1?action=set.

The HTTP return code 400 Bad request will be returned with following XHTML pay load.

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>rw</title>
<base href="" />
</head>
<body>
<div class="status">
<span class="code">-1073414146</span>
<span class="msg">rws_resource_rapid_symbol_data.cpp[534] ERROR:rws_component_rapid.cpp[426]: org_code: -4501 new_code: 0xc004841d; code:-1073414146 icode:-1</span>
</div>
</body>
</html>

The <span class="code">-1073414146</span> defines the specific error code and an explanation can be found in the list of error codes, see Robot controller return codes. <span class="msg"> defines from where the error code originates. The string is of great help for Robotics developers when debugging problems.

Its possible to get a list of all defined error codes see Get a list of RobotWare return codes, or to get a description of a specific error code.