obspy.clients.fdsn.client.raise_on_error

raise_on_error(code, data)[source]

Raise an error for non-200 HTTP response codes

Parameters:
  • code (int) HTTP response code
  • data (io.BytesIO) Data returned by the server