code: public static ResponseStatus fromHttp(final int code) {
          ResponseStatus status;
          switch (code) {
              case HTTP_OK:
              case HTTP_CREATED:
              case HTTP_ACCEPTED:
                  status = ResponseStatus.SUCCESS;
                  break;
              case HTTP_NOT_FOUND:
                  status = ResponseStatus.NOT_EXISTS;
                  break;
              case HTTP_BAD_REQUEST:
                  status = ResponseStatus.INVALID_ARGUMENTS;
                  break;
              case HTTP_INTERNAL_ERROR:
                  status = ResponseStatus.INTERNAL_ERROR;
                  break;
              case HTTP_UNAUTHORIZED:
                  status = ResponseStatus.ACCESS_ERROR;
                  break;
              case HTTP_TOO_MANY_REQUESTS:
                  status = ResponseStatus.FAILURE;
                  break;
              default:
                  LOGGER.warn("Unknown ResponseStatus with Protocol HTTP: {}", code);
                  status = ResponseStatus.FAILURE;
          }
          return status;
      }
docs: Convert the http protocol status in a typesafe enum that can be acted upon later.
  
  @param code the status to convert.
  @return the converted response status.