#NEWLINE# @ staticmethod #NEWLINE# def _check_status( status ) : #NEWLINE# #INDENT# '\n        Validates error statuses.\n        ' #NEWLINE# status_code = status_code [ 'code' ] #NEWLINE# if ( status_code == 200 ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( status_code == 429 ) : #NEWLINE# #INDENT# raise GeocoderQuotaExceeded ( 'The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period of time.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( status_code == 403 ) : #NEWLINE# #INDENT# raise GeocoderQueryError ( 'Your request was denied.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise GeocoderQueryError ( ( 'Unknown error: ' + str ( status_code ) ) )