DevPath

Stop leaking a 500 for a domain conflict

Mid · debugging · 20 min · runtime php-cli

Brief

A SlotAlreadyBooked exception currently produces a 500 with a stack trace. Show where to translate it into a 409 with a stable error code, and explain why controllers must not expose internal messages.

3 progressive hints are available in the editor.

Public checks

  • maps to conflict — expected: returns 409 for the domain exception