---
title: "httpGetReasonPhrase"
canonical: "https://support.appfire.com/space/PSJC/434733512/httpGetReasonPhrase"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Retrieves the HTTP reason phrase of the latest HTTP response. For instance, "OK", "Not Found", "Unsupported Media Type", and so on.

Retrieves the HTTP reason phrase of the latest HTTP response. For instance, "OK", "Not Found", "Unsupported Media Type", and so on.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | httpGetReasonPhrase() | **Package** | http |
| **Alias** |  | **Pkg Usage** | reeasonPhrase() |

## Return Type

**String**

The reason phrase extracted from the latest HTTP response.

## Example

```javascript
string reasonPh = httpGetReasonPhrase();
print("Last response: " + reasonPh);
```

## See also

> Macro (contentbylabel)