Skip to content
Sharp

Networking · interview question

How does an HttpClient distinguish between client and server errors?

Multiple choiceEasychapter-11-curatedpremiumnetworkinghttpclient-basics
Choose one answer
Answer and explanation

Correct answer

C. By HTTP status codes

Why

HTTP status codes are used to distinguish between client errors (400 range) and server errors (500 range), providing a standardized way to understand what occurred with the request.

Test yourself on Networking

A free test with instant, explained results. No account needed.

Start free test
All Networking questions →