fixed http status code passing on error
fixed null reply header when handleResponseNotOk