Access the exception argument to see whether it starts with '500'.
Fixes #527855.
1 file changed