diff --git a/plugins/aws-s3-storage/src/s3Errors.ts b/plugins/aws-s3-storage/src/s3Errors.ts index 97583f59..c8a132a8 100644 --- a/plugins/aws-s3-storage/src/s3Errors.ts +++ b/plugins/aws-s3-storage/src/s3Errors.ts @@ -44,6 +44,6 @@ export function convertS3Error(err: AWSError): VerdaccioError { return getInternalError('request aborted'); default: // @ts-ignore - return getCode(err.statusCode, err.message); + return getCode(err.statusCode || HTTP_STATUS.INTERNAL_ERROR, err.message); } }