From e66f5e890c1287b3320d1e8872a1365f4620a417 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 30 Jun 2023 21:25:41 +0100 Subject: [PATCH] Change failed download response code --- combineImg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combineImg/__init__.py b/combineImg/__init__.py index 1f5846a..f836831 100644 --- a/combineImg/__init__.py +++ b/combineImg/__init__.py @@ -134,7 +134,7 @@ def lambda_handler(event, context): return {'statusCode':400,'body':'Invalid image URL'} combined = genImageFromURL(images) if (combined == None): - return {'statusCode':400,'body':'Failed to download image(s)'} + return {'statusCode':500,'body':'Failed to download image(s)'} buffered = BytesIO() combined.save(buffered,format="JPEG",quality=60) combined_str=base64.b64encode(buffered.getvalue()).decode('ascii')