<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_unknown_error_response(self, request, exc):
 """ Generate HttpResponse for unknown exceptions. todo: this should be more informative.. """


        logging.getLogger('devil').error(
            'while doing %s on %s with [%s], devil caught: %s' % (
                request.method, request.path_info, str(request.GET), str(exc)), exc_info=True)

        if settings.DEBUG:
            raise
        else:
            return HttpResponse(status=codes.INTERNAL_SERVER_ERROR[1])