@halsp/http
Version:
支持 Halsp HTTP 请求
10 lines (8 loc) • 314 B
text/typescript
import { StatusCodes } from "http-status-codes";
import { ExceptionMessage } from "@halsp/core";
import { HttpException } from "./http-exception";
export class MisdirectedException extends HttpException {
constructor(error?: string | ExceptionMessage) {
super(StatusCodes.MISDIRECTED_REQUEST, error);
}
}