1👍
I think you could look the solution at here http://www.django-rest-framework.org/api-guide/status-codes/
I had the same problem before this, all you need to fix this is just import status
from rest_framework and Response
from rest_framework.response
from rest_framework import status
from rest_framework.response import Response
Source:stackexchange.com