Add method to utilites for HttpResponse without json.
Make api views use new utilites methods.