In the docs it provides InvalidRequestError and ServiceUnavailableError as classes in the openai python library. However they are not as of the new version.
See screenshot
Here is the docs link:
https://platform.openai.com/docs/guides/error-codes/python-library-error-types