Implement comprehensive, standardized error response system for PHP REST APIs with consistent JSON envelopes, specific error message extraction, and SweetAlert2 integration.
Security Baseline (Required): Always load and apply the Vibe Security Skill for PHP API work. Do not leak sensitive data in responses or logs.
Cross-Platform: APIs deploy to Windows (dev), Ubuntu (staging), Debian (production), all running MySQL 8.x. Use utf8mb4unicodeci collation. Match file/directory case exactly in require paths (Linux is case-sensitive). Use forward slashes in paths.
Umfassendes, standardisiertes Fehlerreaktionssystem für PHP-REST-APIs mit SweetAlert2-Integration. Verwenden Sie es beim Erstellen von REST-APIs, die eine konsistente Fehlerformatierung, spezifische Fehlermeldungsextraktion aus Datenbankausnahmen, Validierungsfehlerbehandlung und nahtlose Frontend-Integration benötigen. Beinhaltet PDOException-Analyse, Geschäftsregelextraktion und vollständige SweetAlert2-Fehleranzeigemuster. Quelle: peterbamuhigire/skills-web-dev.