# hypercore-errors

> Hypercore errors

Latest version **1.5.0** (published 2025-08-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install hypercore-errors
pnpm add hypercore-errors
yarn add hypercore-errors
bun add hypercore-errors
```

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2025-08-20 |
| First published | 2023-07-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Holepunch |
| Maintainers | mafintosh, kasperisager, lukks |

## Links

- npm: https://www.npmjs.com/package/hypercore-errors
- Repository: https://github.com/holepunchto/hypercore-errors
- Homepage: https://github.com/holepunchto/hypercore-errors#readme
- Issues: https://github.com/holepunchto/hypercore-errors/issues
- npm.io page: https://npm.io/package/hypercore-errors

## Dependencies (1)

- [hypercore-id-encoding](https://npm.io/package/hypercore-id-encoding.md) ^1.3.0

## Recent versions

- 1.5.0 (latest) — 2025-08-20
- 1.4.0 — 2024-12-03
- 1.3.0 — 2024-08-30
- 1.2.0 — 2024-03-01
- 1.1.1 — 2024-01-22
- 1.1.0 — 2023-08-23
- 1.0.0 — 2023-07-26

## README

# hypercore-errors

Hypercore errors

```
npm i hypercore-errors
```

## Usage

```js
const { BLOCK_NOT_AVAILABLE } = require('hypercore-errors')

throw BLOCK_NOT_AVAILABLE()
```

## List

- BAD_ARGUMENT
- STORAGE_EMPTY
- STORAGE_CONFLICT
- INVALID_SIGNATURE
- INVALID_CAPABILITY
- INVALID_CHECKSUM
- INVALID_OPERATION
- INVALID_PROOF
- BLOCK_NOT_AVAILABLE
- SNAPSHOT_NOT_AVAILABLE
- REQUEST_CANCELLED
- REQUEST_TIMEOUT
- SESSION_NOT_WRITABLE
- SESSION_CLOSED
- BATCH_UNFLUSHED
- BATCH_ALREADY_EXISTS
- BATCH_ALREADY_FLUSHED
- OPLOG_CORRUPT
- OPLOG_HEADER_OVERFLOW
- INVALID_OPLOG_VERSION
- WRITE_FAILED

## License

Apache-2.0

---
_Source: https://npm.io/package/hypercore-errors · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
