Update dependencies and lock dependencies.
Fixed response code handling of HTTP 4xx errors.