1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2025-01-22 23:28:44 +00:00
code-server-2/src/common/http.ts
Asher 2819fd51e2
Remove unused endpoints
- dashboard
- app api
2020-07-27 12:00:42 -05:00

17 lines
331 B
TypeScript

export enum HttpCode {
Ok = 200,
Redirect = 302,
NotFound = 404,
BadRequest = 400,
Unauthorized = 401,
LargePayload = 413,
ServerError = 500,
}
export class HttpError extends Error {
public constructor(message: string, public readonly code: number) {
super(message)
this.name = this.constructor.name
}
}