check for 502