It would be nice to make this return a response with an error message:
```python
return JsonResponse({"error": "Can't find item by location"}, 404)
```