Handles errors in HTTP responses by mapping status codes to common exception types.
Throws appropriate Exceptions based on HTTP status codes and response bodies.
Exception