feat(client): added error types for handling responses