1.1.1 • Published 4 years ago
@cfworker/http-errors v1.1.1
@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.');