Add type hints to synapse.api.errors module.