add on error instead of connection-error and http-error to simplify it