global handling of empty response