The DeploymentException wrapping the HandshakeException and makes the HTTP status code accessible directly.
DeploymentException
HandshakeException
Converts the exceptions into more specific ones.