rajt
Version:
A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.
16 lines (14 loc) • 316 B
text/typescript
export class Unauthorized extends Error {
status = 401
constructor(message = 'Unauthorized') {
super(message)
this.name = 'UnauthorizedError'
}
}
export class BadRequest extends Error {
status = 400
constructor(message = 'Bad Request') {
super(message)
this.name = 'BadRequestError'
}
}