Detect 401 HTTP status code