bun-server-error-handling
Installation
SKILL.md
Bun Server Error Handling
Built-in Exceptions
import {
HttpException,
BadRequestException,
UnauthorizedException,
ForbiddenException,
NotFoundException,
InternalServerErrorException,
} from "@dangao/bun-server";
@Controller("/api/users")
class UserController {
@GET("/:id")
async getUser(@Param("id") id: string) {
const user = await this.userService.findById(id);