title: RetrieveAPIView Django Rest framework, return custom response when lookup_field detail does not exists in database
body: <p>I am new to Django rest framework.
  I have a model and serializer. Trying to retrieve data using RetrieveAPIView using a lookup_field.</p>
  <p>I want to return custom response when lookup_filed data does not exits in database.</p>
  <p>Below is my view</p>
  <pre><code>class GetData(RetrieveAPIView):    
      serializer_class = DataSerializer
      lookup_field='id'
      action = &quot;retrieve&quot;
      def get_queryset(self):           
         Data.objects.all()   
  </code></pre>
  <p>This is my response:
  {
  &quot;detail&quot;: &quot;Not found.&quot;
  }</p>