Closing #317 (REST API: flash process that failed with status code -2 displayed as succeeded operation)