old_contents: from django.http import HttpResponse
  from django.utils import simplejson as json
  from rest_dispatch import RESTDispatch
  from myuw_mobile.dao.pws import Person as PersonDao
  from myuw_mobile.user import UserService
  import logging
  
  class InstructorContact(RESTDispatch):
  
      _logger = logging.getLogger('myuw_mobile.views.contact_api.InstructorContact')
  
      def GET(self, request, regid):
          """ 
          GET returns 200 with the whitepage information of the given person.
          """
  
          user_service = UserService(request)
          contact = PersonDao(user_service).get_contact(regid)
          if not contact:
              return super(InstructorContact, 
                           self).data_not_found(*args, **named_args)
  
          return HttpResponse(json.dumps(contact))
  
  
new_contents: from django.http import HttpResponse
  from django.utils import simplejson as json
  from rest_dispatch import RESTDispatch
  from myuw_mobile.dao.pws import Person as PersonDao
  from myuw_mobile.user import UserService
  import logging
  
  class InstructorContact(RESTDispatch):
  
      _logger = logging.getLogger('myuw_mobile.views.contact_api.InstructorContact')
  
      def GET(self, request, regid):
          """ 
          GET returns 200 with the whitepage information of the given person.
          """
  
          user_service = UserService(request)
          if not regid:
              return super(InstructorContact,
                           self).invalid_arg(*args, **named_args)
  
          contact = PersonDao(user_service).get_contact(regid)
          if not contact:
              return super(InstructorContact, 
                           self).data_not_found(*args, **named_args)
  
          return HttpResponse(json.dumps(contact))
  
  
subject: Add input argument check.