@cfworker/http-errorsdeprecated

A collection HTTP error classes for use with @cfworker/web.

Usage no npm install needed!

<script type="module">
  import cfworkerHttpErrors from 'https://cdn.skypack.dev/@cfworker/http-errors';
</script>

README

@cfworker/http-errors

A collection HTTP error classes for use with @cfworker/web.

import { BadRequestError } from '@cfworker/http-errors';

// ... while handling a request...

throw new BadRequestError('foo is required.');