Project maintenance
Add controller extensions for ThrowException() which returns messages as an ApiError message.