Handles errors in HTTP responses.
Throws appropriate Exceptions based on HTTP status codes and response bodies.
Exception