---
title: "httpGetErrorMessage"
canonical: "https://support.appfire.com/space/PSJ/15480928/httpGetErrorMessage"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | httpGetErrorMessage() | **Package** | http |
| **Alias** |  | **Pkg Usage** | errorMessage() |

## Description

> Macro (excerpt)
> 
> Retrieves an error message (if any) generated by the latest HTTP request

Retrieves an error message (if any) generated by the latest HTTP request

## Return Type

**String**

The error message

## Example

```
string errMsg = httpGetErrorMessage();
print("Last error message: " + errMsg);
```

## See also

> Macro (contentbylabel)