Added errors handlers to routes