API275 Documents

Localized Response Message

Never return hardcoded human-readable messages from API responses; use localized translation keys.

Correct

return ok({ message: 'tenantNotFound' })
return res.send('emptyResponse')

Incorrect

return ok({ message: 'Tenant was not found.' })
return res.send('The tenant was not found.')

Fix

Replace hardcoded response text with a localization key.