mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-29 03:26:37 +08:00
2c45fa596a
- createPlayProfileHandler: return 201 Created (not 200) on success - create/update handlers: return 500 for infra errors, 400 only for validation errors (using new ErrPlayProfileValidation sentinel) - deletePlayProfileHandler: validate JSON body (was silently ignored) - verifyPlayProfilePINHandler: validate JSON body (was silently ignored) - verify handler catch-all: return 500 (not 400) for unexpected errors - Service layer: wrap validation errors with ErrPlayProfileValidation so handlers can distinguish client vs server errors Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>