// All of the below involve throwing an exception.
switch (code) {
case 304:
throw new NotModifiedException();
case 400:
throw new BadRequestException();
case 401:
throw new UnauthorizedException();
case 403:
throw new ForbiddenException();
case 404: