Skip to content

Commit e66f5e8

Browse files
committed
Change failed download response code
1 parent 50b1f66 commit e66f5e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

combineImg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def lambda_handler(event, context):
134134
return {'statusCode':400,'body':'Invalid image URL'}
135135
combined = genImageFromURL(images)
136136
if (combined == None):
137-
return {'statusCode':400,'body':'Failed to download image(s)'}
137+
return {'statusCode':500,'body':'Failed to download image(s)'}
138138
buffered = BytesIO()
139139
combined.save(buffered,format="JPEG",quality=60)
140140
combined_str=base64.b64encode(buffered.getvalue()).decode('ascii')

0 commit comments

Comments
 (0)