Skip to main content

Built and signed on GitHub Actions

Federation types, validators and cryptography for Versia server implementations.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
52%
Published
2 days ago (0.1.1)
class ResponseError
extends Error

Wrapper around Error, useful for detecting if an error is due to a failed request.

Throws if the request returns invalid or unexpected data.

Constructors

new
ResponseError(
response: Output<ReturnType>,
message: string,
)

Type Parameters

ReturnType = { error?: string; }

Add Package

deno add jsr:@versia/federation

Import symbol

import { ResponseError } from "@versia/federation";

---- OR ----

Import directly with a jsr specifier

import { ResponseError } from "jsr:@versia/federation";

Add Package

npx jsr add @versia/federation

Import symbol

import { ResponseError } from "@versia/federation";

Add Package

yarn dlx jsr add @versia/federation

Import symbol

import { ResponseError } from "@versia/federation";

Add Package

pnpm dlx jsr add @versia/federation

Import symbol

import { ResponseError } from "@versia/federation";

Add Package

bunx jsr add @versia/federation

Import symbol

import { ResponseError } from "@versia/federation";