2026-01-27 08:24:22 +00:00
|
|
|
# Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
# See the LICENSE file for details.
|
|
|
|
|
|
2024-03-06 08:54:58 +00:00
|
|
|
# views.py
|
|
|
|
|
from django.http import JsonResponse
|
|
|
|
|
|
2024-11-21 12:12:44 +00:00
|
|
|
|
2024-03-06 08:54:58 +00:00
|
|
|
def custom_404_view(request, exception=None):
|
|
|
|
|
return JsonResponse({"error": "Page not found."}, status=404)
|