fileserver/dto/src/responses/base.ts

13 lines
226 B
TypeScript
Raw Normal View History

2022-08-25 11:39:58 +00:00
export class BaseResponse {
statusCode: number;
}
export class SuccessResponse extends BaseResponse {
statusCode: 200;
}
export class ErrorResponse extends BaseResponse {
statusCode: 400 | 401 | 403;
message?: string;
}