diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index bc20fcaa3..3032f1155 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -141,7 +141,7 @@ class APIException(Exception): # raise serializers.ValidationError('Value was invalid') class ValidationError(APIException): - status_code = status.HTTP_400_BAD_REQUEST + status_code = status.HTTP_422_UNPROCESSABLE_ENTITY default_detail = _('Invalid input.') default_code = 'invalid' default_params = {}