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

# constructor

> Constructs a new instance of the NfFetchException class

import { PageLink } from '/snippets/tsdocs/PageLink.jsx';
import { RefLink } from '/snippets/tsdocs/RefLink.jsx';

# constructor

## Summary

Constructs a new instance of the `NfFetchException` class

## Signature

```typescript theme={null}
constructor(code: number, text: string);
```

## Parameters

### code

* **Type**:`number`

HTTP status code of the failed response.

### text

* **Type**:`string`

Status text of the failed response.
