---
title: Response
description: An HTTP response message. Access the content of the response by using expressions.
component: pinggateway
version: 2026
page_id: pinggateway:reference:Response
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/Response.html
revdate: 2025-06-02T18:01:47Z
section_ids:
  Response-properties: Properties
  Response-moreinfo: More information
---

# Response

An HTTP response message. Access the content of the response by using [expressions](Expressions.html#expressions-syntax).

## Properties

* `"cause"`: *[java.lang.Exception](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html)*

  The cause of an error if the status code is in the range 4xx-5xx. Possibly null.

* `"status"`: *[Status](../_attachments/apidocs/org/forgerock/http/protocol/Status.html)*

  The response status.

* `"version"`: *[java.lang.String](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html)*

  The protocol version used the response; for example, `HTTP/2`.

* `"headers"`: *[org.forgerock.http.protocol.Headers](../_attachments/apidocs/org/forgerock/http/protocol/Headers.html)*

  One or more headers in the response. The following example accesses the first value of the response header `Content-Type`:

  ```none
  ${response.headers['Content-Type'][0]}
  ```

* `"trailers"`: *[org.forgerock.http.protocol.Headers](../_attachments/apidocs/org/forgerock/http/protocol/Headers.html)*

  One or more trailers in the response. The following example accesses the first value of the response trailer `Content-Length`:

  ```none
  ${response.trailers['Content-Length'][0]}
  ```

* `"entity"`: *[Entity](../_attachments/apidocs/org/forgerock/http/protocol/Entity.html)*

  The message entity body. The following example accesses the user ID from the response:

  ```none
  #{toString(response.entity.json['userId'])}
  ```

## More information

[org.forgerock.http.protocol.Response](../_attachments/apidocs/org/forgerock/http/protocol/Response.html)
