> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RawResponse

> RawResponse — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[hyper\_client](https://docs.kinetica.com/content/api/rust/hyper_client/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/hyper_client.rs#L214-L224)&#x20;

<pre>`pub struct RawResponse {    pub status: u16,    pub reason: String,    pub content_type: Option<String>,    pub body: Bytes,}`</pre>

A response as received, before its status is interpreted.Kinetica can report an error with a non-2xx status and still send an Avro body that says what went wrong, so the caller needs both; see `Kinetica::submit_request_raw`, which interprets them.

Fields
`status: u16`

HTTP status code

`reason: String`

The reason phrase the server sent with the status, e.g. “Bad Gateway” or “Kinetica is exiting”

`content_type: Option<String>`

`Content-Type` header, if present

`body: Bytes`

Response body

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/hyper_client.rs#L213)
impl [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [RawResponse](https://docs.kinetica.com/content/api/rust/hyper_client/struct.RawResponse.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/hyper_client.rs#L213)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [RawResponse](https://docs.kinetica.com/content/api/rust/hyper_client/struct.RawResponse.md)

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/hyper_client.rs#L213)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [RawResponse](https://docs.kinetica.com/content/api/rust/hyper_client/struct.RawResponse.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/hyper_client.rs#L213)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.