โ† BrowserStack questions

Parse web server logs and count HTTP status codes

Filed under BrowserStack

The question

Given lines of a web server log file, parse them to extract HTTP status codes, count the occurrences of each code, and print the results sorted in descending order of frequency.

No write-up yet. Related questions below have one.

Related BrowserStack questions

Collected from public candidate posts and coding forums. Updated Nov 2026.