import * as HTTP_STATUS from 'http-status' ; import { IError , IHTTPError } from '@interfaces' ; import { TypeplateError } from '@errors' ; description export class UploadError extends TypeplateError implements IHTTPError { description statusCode : number ; description statusText : string ; description errors : Array < string > ; constructor ( error ) { super ( 'File upload was failed' ) ; this . statusCode = 400 ; this . statusText = error . name ; this . errors = [ error . message || error . code ] ; } }