error_response is used 20 times, it saves 40 lines of similar code. 

And I like approach of subclassing error response, I've tried it also. But, as I want to a) log erorr, b) send error message to front-end (it will be logged to console) so error_response will still have same code except instead ```JsonResponse(response, status_code)``` will be ```ErrorJsonResponse(response)```.

Please correct me, if I've understood you wrong.