  from __future__ import unicode_literals
  
  from django.test import TestCase
  from django.utils import six, translation
  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework.exceptions import (
      APIException, ErrorDetail, Throttled, _get_error_details
 
</s> remove     APIException, ErrorDetail, Throttled, _get_error_details
 </s> add     APIException, ErrorDetail, Throttled, _get_error_details, bad_request,
    server_error
from django.test import RequestFactory, TestCase
  from __future__ import unicode_literals
  
from django.test import RequestFactory, TestCase
  from django.utils import six, translation
  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework.exceptions import (
      APIException, ErrorDetail, Throttled, _get_error_details
keep keep replace keep keep keep keep keep
 Added generic 500 and 400 JSON error handlers. (#5904)

* Added generic 500 and 400 JSON error handlers.
* Docs for generic error views. 
tests/test_exceptions.py