Skip to content

Commit 5aceac8

Browse files
committed
document ForbiddenError, typo asycronous->asyncronous
1 parent 1b548f8 commit 5aceac8

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ with OpenCageGeocode(key) as geocoder:
7979
results = [geocoder.geocode(query) for query in queries]
8080
```
8181

82-
### Asycronous requests
82+
### Asyncronous requests
8383

8484
You can run requests in parallel with the `geocode_async` and `reverse_geocode_async`
8585
method which have the same parameters and response as their synronous counterparts.
@@ -90,15 +90,18 @@ async with OpenCageGeocode(key) as geocoder:
9090
results = await geocoder.geocode_async(address)
9191
```
9292

93-
For a more complete example and links to futher tutorials on asycronous IO see
93+
For a more complete example and links to futher tutorials on asyncronous IO see
9494
`batch.py` in the `examples` directory.
9595

9696
### Exceptions
9797

9898
If anything goes wrong, then an exception will be raised:
99-
* ``InvalidInputError`` for non-unicode query strings
100-
* ``UnknownError`` if there's some problem with the API (bad results, 500 status code, etc)
101-
* ``RateLimitExceededError`` if you go past your rate limit
99+
100+
* `InvalidInputError` for non-unicode query strings
101+
* `NotAuthorizedError` if API key is missing, invalid syntax or disabled
102+
* `ForbiddenError` API key is blocked or suspended
103+
* `RateLimitExceededError` if you go past your rate limit
104+
* `UnknownError` if there's some problem with the API (bad results, 500 status code, etc)
102105

103106

104107
## Copyright & License

0 commit comments

Comments
 (0)