|
@@ -42,7 +42,7 @@ class UserAvatarEndpoint(UserEndpoint):
|
|
|
if photo_string:
|
|
|
photo_string = photo_string.decode('base64')
|
|
|
if len(photo_string) > settings.SENTRY_MAX_AVATAR_SIZE:
|
|
|
- return Response(status=status.HTTP_400_BAD_REQUEST)
|
|
|
+ return Response(status=status.HTTP_413_REQUEST_ENTITY_TOO_LARGE)
|
|
|
with Image.open(StringIO(photo_string)) as img:
|
|
|
width, height = img.size
|
|
|
if not self.is_valid_size(width, height):
|