> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/documentation/response.md).

# response

{% hint style="info" %}
see also: [`request`](/scripting/documentation/request.md) for more usages.
{% endhint %}

## Response

`Response` represents the result of an http request with status code and content.

### code

returns the http status code of the response.

```java
int code = response.code();
```

***

### string

returns the response body as a string.

```java
String body = response.string();
```

***

### json

returns the response body parsed as a Json object.

```java
Json json = response.json();
```
