refactor: extract network error classification helpers (#20)
Added isProgrammingError() and isNetworkError() helpers to routes/helpers.ts
to replace ~35 lines of duplicated error classification logic in the POST
catch blocks of topics.ts and posts.ts.
Co-authored-by: Claude <noreply@anthropic.com>