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.');
A collection HTTP error classes for use with @cfworker/web.
<script type="module">
import cfworkerHttpErrors from 'https://cdn.skypack.dev/@cfworker/http-errors';
</script>
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.');