flowCreate.solutions

Error Handling (Frontend Standard)

This document defines baseline error handling expectations for Next.js frontends.

UI error boundaries (required)

Projects must use error boundaries where appropriate to avoid blank screens and to provide a recoverable UX.

BFF error shaping (required)

Route Handlers must:

  • return safe, consistent error shapes
  • avoid leaking backend stack traces or sensitive values

Logging policy reminder

  • Never log secrets (cookies, tokens, Authorization headers).
  • Avoid logging raw request bodies unless explicitly reviewed and redacted.