# Server

class Server(val status: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val code: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)?, val retryAfterSeconds: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)?) : [FrakError](/developers/references/android/id-frak-sdk-core/frakerror/)

Non-2xx status. code is the `{ success: false, error, code }` envelope's code when present, null for plain-text bodies. retryAfterSeconds only from a `Retry-After` header.

## Constructors

| | |
|---|---|
| [Server](/developers/references/android/id-frak-sdk-core/frakerror/server/server/) | constructor(status: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), code: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)?, retryAfterSeconds: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)?)constructor(status: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html))<br>Status only, for a merchant faking a failure in their own test; the SDK always has all three. |

## Properties

| Name | Summary |
|---|---|
| [code](/developers/references/android/id-frak-sdk-core/frakerror/server/code/) | val [code](/developers/references/android/id-frak-sdk-core/frakerror/server/code/): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? |
| [retryAfterSeconds](/developers/references/android/id-frak-sdk-core/frakerror/server/retryafterseconds/) | val [retryAfterSeconds](/developers/references/android/id-frak-sdk-core/frakerror/server/retryafterseconds/): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? |
| [status](/developers/references/android/id-frak-sdk-core/frakerror/server/status/) | val [status](/developers/references/android/id-frak-sdk-core/frakerror/server/status/): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |