<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [DarknetResponseCodeType](./bitburner.darknetresponsecodetype.md)

## DarknetResponseCodeType type

Errors:

- DirectConnectionRequired: The target server is not directly connected to the current server. This may be caused by a user error (specifying the wrong neighbor host's hostname) or a network change (the target server was moved).

- AuthFailure: Authentication failed. The password is incorrect.

- NotFound: The API requires a specific resource (e.g., an exe file), but it does not exist on the server.

- RequestTimeOut: The request failed (though the password may or may not have been correct). Caused by network instability.

- ServiceUnavailable: The server is offline.

**Signature:**

```typescript
type DarknetResponseCodeType = {
  Success: 200;
  DirectConnectionRequired: 351;
  AuthFailure: 401;
  Forbidden: 403;
  NotFound: 404;
  RequestTimeOut: 408;
  NotEnoughCharisma: 451;
  StasisLinkLimitReached: 453;
  NoBlockRAM: 454;
  PhishingFailed: 455;
  ServiceUnavailable: 503;
};
```
