API275 Documents

Server Error Response

Use serverError for failures caused by server-side conditions.

Correct

serverError('storageUnavailable')

Incorrect

throw new Error('Storage is unavailable')

Fix

Replace direct Error throws for server failures with serverError and a translation key.