An implementation of django JsonResponse with multiple status codes