clients error from router.js 404 and 500 only
error handling updated