def METHOD_NAME(self, exc):
    if isinstance(exc, exceptions.ValidationError):
        # some require that validation errors return 422 status
        # for example ember-data (isInvalid method on adapter)
        exc.status_code = HTTP_422_UNPROCESSABLE_ENTITY
    # exception handler can't be set on class so you have to
    # override the error response in this method
    response = super().METHOD_NAME(exc)
    context = self.get_exception_handler_context()
    return format_drf_errors(response, context, exc)