      default_error_messages = {
          'invalid': _('A valid integer is required.'),
          'max_value': _('Ensure this value is less than or equal to {max_value}.'),
          'min_value': _('Ensure this value is greater than or equal to {min_value}.'),
          'max_string_length': _('String value too large')
      }
      MAX_STRING_LENGTH = 1000  # Guard against malicious string inputs.
  
      def __init__(self, **kwargs):
          max_value = kwargs.pop('max_value', None)
 
</s> remove         'max_string_length': _('String value too large')
 </s> add         'max_string_length': _('String value too large.') </s> remove         'max_string_length': _('String value too large')
 </s> add         'max_string_length': _('String value too large.') </s> remove     default_detail = _('A server error occurred')
 </s> add     default_detail = _('A server error occurred.') </s> remove         'not_a_list': _('Expected a list of items but got type `{input_type}`')
 </s> add         'not_a_list': _('Expected a list of items but got type `{input_type}`.') </s> remove                 raise Http404(_("Page is not 'last', and cannot be converted to an int."))
 </s> add                 raise Http404(_("Choose a valid page number. Page numbers must be a whole number, or must be the string 'last'."))
        'max_string_length': _('String value too large.')
      default_error_messages = {
          'invalid': _('A valid integer is required.'),
          'max_value': _('Ensure this value is less than or equal to {max_value}.'),
          'min_value': _('Ensure this value is greater than or equal to {min_value}.'),
        'max_string_length': _('String value too large.')
      }
      MAX_STRING_LENGTH = 1000  # Guard against malicious string inputs.
  
      def __init__(self, **kwargs):
          max_value = kwargs.pop('max_value', None)
keep keep keep keep replace keep keep keep keep keep
 update error messages for language and consistency 
rest_framework/fields.py