Response
An HTTP response message. Access the content of the response by using expressions.
Properties
"cause"
: java.lang.Exception-
The cause of an error if the status code is in the range 4xx-5xx. Possibly null.
"status"
: Status-
The response status.
"version"
: java.lang.String-
The protocol version used the response; for example,
HTTP/2
. "headers"
: org.forgerock.http.protocol.Headers-
One or more headers in the response. The following example accesses the first value of the response header
Content-Type
:${response.headers['Content-Type'][0]}
"trailers"
: org.forgerock.http.protocol.Headers-
One or more trailers in the response. The following example accesses the first value of the response trailer
Content-Length
:${response.trailers['Content-Length'][0]}
"entity"
: Entity-
The message entity body. The following example accesses the user ID from the response:
#{toString(response.entity.json['userId'])}