"""
Custom error views for the project.
404 and 500 pages use templates/404.html and templates/500.html.
These functions are referenced in config/urls.py as handler404 and handler500.
"""
from django.shortcuts import render


def custom_404(request, exception=None):
    """Render a custom 404 - Page Not Found page."""
    return render(request, '404.html', status=404)


def custom_500(request):
    """Render a custom 500 - Internal Server Error page."""
    return render(request, '500.html', status=500)
