Retcode

abb_rws_client_python_rw6.rws.retcode

RWS module: RobotWare Services → RobotWare return codes service → Get a list of RobotWare retu...

1:1 mirror of the ABB RobotWare 6 REST API. Each function maps to exactly one HTTP endpoint. No composed logic — see highlevel/ for wrappers.

get_list_of_robotware_return_codes(client, code=None) async

Get a list of RobotWare return codes.

Route: GET /rw/retcode ABB constraints: Error description are only available in English and XML is the only supported format. Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • code (str | None, default: None ) –

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_list_of_robotware_return_codes(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/retcode.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
async def get_list_of_robotware_return_codes(
    client: RWSClient,
    code: str | None = None,
) -> httpx.Response:
    """
    Get a list of RobotWare return codes.

    Route: ``GET /rw/retcode``
    ABB constraints: Error description are only available in English and XML is the only
        supported format. Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        code: Query parameter. Optional.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.

    Example:
        ```python
        >>> await get_list_of_robotware_return_codes(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/rw/retcode",
        params={k: v for k, v in {"code": code}.items() if v is not None},
    )