صفحة الخطأ Error Page (404)
الصفحة التي تظهر عندما يكون الرابط خاطئًا أو الصفحة محذوفة، وترشدك إلى أين تذهب.
يُعرف أيضاً باسم: 404
404.html + correct HTTP statusمتى تستخدمه
عندما تكون الصفحة غير موجودة أو يحدث خطأ في الخادم.
خطأ شائع
لا تكتب «خطأ» فقط؛ أعطِ المستخدم طريقًا يكمل منه.
إمكانية الوصول
Return a real 404 status and offer search and a link home.
اسمه في الكود
| HTML/CSS | 404.html + correct HTTP status |
|---|---|
| React | not-found.tsx (Next.js) |
| Jetpack Compose | Error screen composable |
| SwiftUI | ContentUnavailableView |
برومبت جاهز لوكيل البرمجة
Add a Error Page (404) to this screen.
What it is: The page shown when a link is wrong or removed, pointing you somewhere useful.
Implement with: 404.html + correct HTTP status (HTML/CSS).
Accessibility: Return a real 404 status and offer search and a link home.
When to use it: When a page is missing or the server fails.
Avoid: Don’t just say Error; give a way forward.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.