> + * @author Ignasi Barrera
> + *
> + * @see ResponseStatusFromPayloadHttpCommandExecutorService
> + */
> +@Singleton
> +public class DigitalOceanErrorHandler implements HttpErrorHandler {
> +
> + @Override
> + public void handleError(HttpCommand command, HttpResponse response) {
> + Exception exception = null;
> +
> + try {
> + // The response message is already properly populated by the
> + // ResponseStatusFromPayloadHttpCommandExecutorService
> + switch (response.getStatusCode()) {
> + case 401:
Are there constants somewhere for these codes?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9166091