import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

The  **GW2RetStatusErrorMsg** function returns a string describing the error or status message associated with a status returned by other API functions.

<Tabs>

<TabItem value="C++" label="C++" default>

**Synopsis**

The **GW2RetStatusErrorMsg** function returns a pointer to a constant string of the error message associated with the given **GW2_RetStatus** passed in **retStatus**.
```cpp

#include "glasswall.core2.api.h"

const char* GW2RetStatusErrorMsg(GW2_RetStatus retStatus);

```
**Returns**

Returns the error message associated with a given GW2_ReturnStatus.

</TabItem>

<TabItem value="C#" label="C#">

**Synopsis**

The **RetStatusErrorMsg** function returns the error message associated with a given GW2_ReturnStatus passed in **status**.

```csharp

public string RetStatusErrorMsg(int status)

```

**Returns**

Returns the error message associated with a given GW2_ReturnStatus.

</TabItem>

<TabItem value="Java" label="Java">

**Synopsis**

This function returns the description of the given Glasswall status passed in **status**

```java
public String GW2RetStatusErrorMsg(int status) throws GlasswallException
```

**Returns**

String containing the description of the given status.

</TabItem>


</Tabs>