nitweb: catch 404 errors from /api/*